erigon-pulse/ethdb/remote/db_grpc.pb.go

134 lines
4.2 KiB
Go
Raw Normal View History

2020-07-29 04:31:46 +00:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package remote
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
bitmap indices for logs (#1124) * save progress * try now * don't create bloom inside rlpDecode * don't create bloom inside ApplyTransaction * clean * clean * clean * clean * clean * clean * clean * clean * rename method * print timings * print timings * print timings * sort before flush * fix err lint * clean * move tests to transactions * compressed version * up bound * up bound * more tests * more tests * more tests * more tests * better removal * clean * better performance of get/put methods * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * optimize rpcdaemon * fix test * fix rpcdaemon * fix test * simplify * simplify * fix nil pointer * clean * revert some changes * add some logs * clean * try without optimize * clean * clean * clean * clean * try * move log_index to own stage * move log_index to own stage * integration add log_index stage * integration add log_index stage * clean * clean * print timing * remove duplicates at unwind * extract truncateBitmaps func * try detect * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * clean * add blackList of topics * clean * clean * clean * clean * clean * clean * clean * clean * sharding 1 * sharded 2 * sharded 2 * sharded 2 * sharded 2 * sharded 2 * sharded 2 * sharded 2 * sharded 2 * sharded 2 * sharded 2 * sharded 2 * sharded 2 * sharded 2 * sharded 2 * sharded 2 * sharded 2 * sharded 3 * sharded 3 * sharded 3 * speedup things by putCurrent and putReserve * clean * optimize trim * clean * remove blacklist * add more info to err * ? * clean * clean * clean * clean * clean * working version * switch to cgo version of roaring bitmaps * clean * clean * clean * clean * more docs * clean * clean * fix logs bloom field * Fix debug_getModifiedAccountsByNumber * Try to fix crash * fix problem with "absent block" * fix problem with "absent block" * remove optimize method call * remove roaring iterator * fix problem with rebuild indicess * remove debug prints * tests for eth_getLogs involving topics * add tests for new stage, speparate topics into 2 buckets * version up * remove debug logs * remove debug logs * remove bloom filter implementation * Optimisation * Optimisatin not required, make rpctest lenient to geth errors * Lenient to geth failures Co-authored-by: Alexey Akhunov <akhounov@gmail.com>
2020-09-28 17:18:36 +00:00
const _ = grpc.SupportPackageIsVersion7
2020-07-29 04:31:46 +00:00
// DBClient is the client API for DB service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type DBClient interface {
Size(ctx context.Context, in *SizeRequest, opts ...grpc.CallOption) (*SizeReply, error)
BucketSize(ctx context.Context, in *BucketSizeRequest, opts ...grpc.CallOption) (*BucketSizeReply, error)
}
type dBClient struct {
cc grpc.ClientConnInterface
}
func NewDBClient(cc grpc.ClientConnInterface) DBClient {
return &dBClient{cc}
}
func (c *dBClient) Size(ctx context.Context, in *SizeRequest, opts ...grpc.CallOption) (*SizeReply, error) {
out := new(SizeReply)
err := c.cc.Invoke(ctx, "/remote.DB/Size", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dBClient) BucketSize(ctx context.Context, in *BucketSizeRequest, opts ...grpc.CallOption) (*BucketSizeReply, error) {
out := new(BucketSizeReply)
err := c.cc.Invoke(ctx, "/remote.DB/BucketSize", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// DBServer is the server API for DB service.
// All implementations must embed UnimplementedDBServer
// for forward compatibility
type DBServer interface {
Size(context.Context, *SizeRequest) (*SizeReply, error)
BucketSize(context.Context, *BucketSizeRequest) (*BucketSizeReply, error)
mustEmbedUnimplementedDBServer()
2020-07-29 04:31:46 +00:00
}
// UnimplementedDBServer must be embedded to have forward compatible implementations.
type UnimplementedDBServer struct {
}
func (UnimplementedDBServer) Size(context.Context, *SizeRequest) (*SizeReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method Size not implemented")
}
func (UnimplementedDBServer) BucketSize(context.Context, *BucketSizeRequest) (*BucketSizeReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method BucketSize not implemented")
}
func (UnimplementedDBServer) mustEmbedUnimplementedDBServer() {}
// UnsafeDBServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to DBServer will
// result in compilation errors.
type UnsafeDBServer interface {
mustEmbedUnimplementedDBServer()
}
func RegisterDBServer(s grpc.ServiceRegistrar, srv DBServer) {
s.RegisterService(&_DB_serviceDesc, srv)
}
func _DB_Size_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2020-07-29 04:31:46 +00:00
in := new(SizeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DBServer).Size(ctx, in)
2020-07-29 04:31:46 +00:00
}
info := &grpc.UnaryServerInfo{
Server: srv,
2020-07-29 04:31:46 +00:00
FullMethod: "/remote.DB/Size",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DBServer).Size(ctx, req.(*SizeRequest))
2020-07-29 04:31:46 +00:00
}
return interceptor(ctx, in, info, handler)
}
func _DB_BucketSize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2020-07-29 04:31:46 +00:00
in := new(BucketSizeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DBServer).BucketSize(ctx, in)
2020-07-29 04:31:46 +00:00
}
info := &grpc.UnaryServerInfo{
Server: srv,
2020-07-29 04:31:46 +00:00
FullMethod: "/remote.DB/BucketSize",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DBServer).BucketSize(ctx, req.(*BucketSizeRequest))
2020-07-29 04:31:46 +00:00
}
return interceptor(ctx, in, info, handler)
}
var _DB_serviceDesc = grpc.ServiceDesc{
ServiceName: "remote.DB",
HandlerType: (*DBServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Size",
Handler: _DB_Size_Handler,
2020-07-29 04:31:46 +00:00
},
{
MethodName: "BucketSize",
Handler: _DB_BucketSize_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "remote/db.proto",
2020-07-29 04:31:46 +00:00
}