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

130 lines
3.1 KiB
Go
Raw Normal View History

2020-07-27 12:15:48 +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-27 12:15:48 +00:00
// KVClient is the client API for KV 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 KVClient interface {
Tx(ctx context.Context, opts ...grpc.CallOption) (KV_TxClient, error)
2020-07-27 12:15:48 +00:00
}
type kVClient struct {
cc grpc.ClientConnInterface
}
func NewKVClient(cc grpc.ClientConnInterface) KVClient {
return &kVClient{cc}
}
func (c *kVClient) Tx(ctx context.Context, opts ...grpc.CallOption) (KV_TxClient, error) {
stream, err := c.cc.NewStream(ctx, &_KV_serviceDesc.Streams[0], "/remote.KV/Tx", opts...)
2020-07-27 12:15:48 +00:00
if err != nil {
return nil, err
}
x := &kVTxClient{stream}
2020-07-27 12:15:48 +00:00
return x, nil
}
type KV_TxClient interface {
Send(*Cursor) error
2020-07-27 12:15:48 +00:00
Recv() (*Pair, error)
grpc.ClientStream
}
type kVTxClient struct {
2020-07-27 12:15:48 +00:00
grpc.ClientStream
}
func (x *kVTxClient) Send(m *Cursor) error {
2020-07-27 12:15:48 +00:00
return x.ClientStream.SendMsg(m)
}
func (x *kVTxClient) Recv() (*Pair, error) {
2020-07-27 12:15:48 +00:00
m := new(Pair)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// KVServer is the server API for KV service.
// All implementations must embed UnimplementedKVServer
// for forward compatibility
type KVServer interface {
Tx(KV_TxServer) error
mustEmbedUnimplementedKVServer()
}
// UnimplementedKVServer must be embedded to have forward compatible implementations.
type UnimplementedKVServer struct {
}
func (UnimplementedKVServer) Tx(KV_TxServer) error {
return status.Errorf(codes.Unimplemented, "method Tx not implemented")
}
func (UnimplementedKVServer) mustEmbedUnimplementedKVServer() {}
// UnsafeKVServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to KVServer will
// result in compilation errors.
type UnsafeKVServer interface {
mustEmbedUnimplementedKVServer()
}
func RegisterKVServer(s grpc.ServiceRegistrar, srv KVServer) {
s.RegisterService(&_KV_serviceDesc, srv)
}
func _KV_Tx_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(KVServer).Tx(&kVTxServer{stream})
}
type KV_TxServer interface {
Send(*Pair) error
Recv() (*Cursor, error)
grpc.ServerStream
}
type kVTxServer struct {
grpc.ServerStream
}
func (x *kVTxServer) Send(m *Pair) error {
return x.ServerStream.SendMsg(m)
}
func (x *kVTxServer) Recv() (*Cursor, error) {
m := new(Cursor)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
var _KV_serviceDesc = grpc.ServiceDesc{
ServiceName: "remote.KV",
HandlerType: (*KVServer)(nil),
Methods: []grpc.MethodDesc{},
Streams: []grpc.StreamDesc{
{
StreamName: "Tx",
Handler: _KV_Tx_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "remote/kv.proto",
}