2021-07-01 15:35:06 +00:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2022-04-07 04:29:32 +00:00
// versions:
2023-03-09 02:48:16 +00:00
// - protoc-gen-go-grpc v1.3.0
2023-09-18 03:25:33 +00:00
// - protoc v4.24.2
2022-04-07 04:29:32 +00:00
// source: remote/kv.proto
2021-07-01 15:35:06 +00:00
package remote
import (
2021-09-26 12:47:11 +00:00
context "context"
types "github.com/ledgerwatch/erigon-lib/gointerfaces/types"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
emptypb "google.golang.org/protobuf/types/known/emptypb"
2021-07-01 15:35:06 +00:00
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc . SupportPackageIsVersion7
2023-03-09 02:48:16 +00:00
const (
KV_Version_FullMethodName = "/remote.KV/Version"
KV_Tx_FullMethodName = "/remote.KV/Tx"
KV_StateChanges_FullMethodName = "/remote.KV/StateChanges"
KV_Snapshots_FullMethodName = "/remote.KV/Snapshots"
2023-03-25 03:51:41 +00:00
KV_Range_FullMethodName = "/remote.KV/Range"
2023-03-09 02:48:16 +00:00
KV_DomainGet_FullMethodName = "/remote.KV/DomainGet"
KV_HistoryGet_FullMethodName = "/remote.KV/HistoryGet"
KV_IndexRange_FullMethodName = "/remote.KV/IndexRange"
2023-03-25 03:51:41 +00:00
KV_HistoryRange_FullMethodName = "/remote.KV/HistoryRange"
KV_DomainRange_FullMethodName = "/remote.KV/DomainRange"
2023-03-09 02:48:16 +00:00
)
2021-07-01 15:35:06 +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 {
// Version returns the service version number
Version ( ctx context . Context , in * emptypb . Empty , opts ... grpc . CallOption ) ( * types . VersionReply , error )
// Tx exposes read-only transactions for the key-value store
2021-09-15 06:11:34 +00:00
//
// When tx open, client must receive 1 message from server with txID
2021-09-26 12:47:11 +00:00
// When cursor open, client must receive 1 message from server with cursorID
2021-09-15 06:11:34 +00:00
// Then only client can initiate messages from server
2021-07-01 15:35:06 +00:00
Tx ( ctx context . Context , opts ... grpc . CallOption ) ( KV_TxClient , error )
2021-08-07 04:53:24 +00:00
StateChanges ( ctx context . Context , in * StateChangeRequest , opts ... grpc . CallOption ) ( KV_StateChangesClient , error )
2022-07-26 02:28:10 +00:00
// Snapshots returns list of current snapshot files. Then client can just open all of them.
2022-07-26 02:42:34 +00:00
Snapshots ( ctx context . Context , in * SnapshotsRequest , opts ... grpc . CallOption ) ( * SnapshotsReply , error )
2023-01-20 11:08:22 +00:00
// Range [from, to)
// Range(from, nil) means [from, EndOfTable)
// Range(nil, to) means [StartOfTable, to)
// If orderAscend=false server expecting `from`<`to`. Example: Range("B", "A")
Range ( ctx context . Context , in * RangeReq , opts ... grpc . CallOption ) ( * Pairs , error )
2023-03-25 03:51:41 +00:00
// Temporal methods
DomainGet ( ctx context . Context , in * DomainGetReq , opts ... grpc . CallOption ) ( * DomainGetReply , error )
HistoryGet ( ctx context . Context , in * HistoryGetReq , opts ... grpc . CallOption ) ( * HistoryGetReply , error )
IndexRange ( ctx context . Context , in * IndexRangeReq , opts ... grpc . CallOption ) ( * IndexRangeReply , error )
HistoryRange ( ctx context . Context , in * HistoryRangeReq , opts ... grpc . CallOption ) ( * Pairs , error )
DomainRange ( ctx context . Context , in * DomainRangeReq , opts ... grpc . CallOption ) ( * Pairs , error )
2021-07-01 15:35:06 +00:00
}
type kVClient struct {
cc grpc . ClientConnInterface
}
func NewKVClient ( cc grpc . ClientConnInterface ) KVClient {
return & kVClient { cc }
}
func ( c * kVClient ) Version ( ctx context . Context , in * emptypb . Empty , opts ... grpc . CallOption ) ( * types . VersionReply , error ) {
out := new ( types . VersionReply )
2023-03-09 02:48:16 +00:00
err := c . cc . Invoke ( ctx , KV_Version_FullMethodName , in , out , opts ... )
2021-07-01 15:35:06 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * kVClient ) Tx ( ctx context . Context , opts ... grpc . CallOption ) ( KV_TxClient , error ) {
2023-03-09 02:48:16 +00:00
stream , err := c . cc . NewStream ( ctx , & KV_ServiceDesc . Streams [ 0 ] , KV_Tx_FullMethodName , opts ... )
2021-07-01 15:35:06 +00:00
if err != nil {
return nil , err
}
x := & kVTxClient { stream }
return x , nil
}
type KV_TxClient interface {
Send ( * Cursor ) error
Recv ( ) ( * Pair , error )
grpc . ClientStream
}
type kVTxClient struct {
grpc . ClientStream
}
func ( x * kVTxClient ) Send ( m * Cursor ) error {
return x . ClientStream . SendMsg ( m )
}
func ( x * kVTxClient ) Recv ( ) ( * Pair , error ) {
m := new ( Pair )
if err := x . ClientStream . RecvMsg ( m ) ; err != nil {
return nil , err
}
return m , nil
}
2021-08-07 04:53:24 +00:00
func ( c * kVClient ) StateChanges ( ctx context . Context , in * StateChangeRequest , opts ... grpc . CallOption ) ( KV_StateChangesClient , error ) {
2023-03-09 02:48:16 +00:00
stream , err := c . cc . NewStream ( ctx , & KV_ServiceDesc . Streams [ 1 ] , KV_StateChanges_FullMethodName , opts ... )
2021-07-01 15:35:06 +00:00
if err != nil {
return nil , err
}
2021-08-07 04:53:24 +00:00
x := & kVStateChangesClient { stream }
2021-07-01 15:35:06 +00:00
if err := x . ClientStream . SendMsg ( in ) ; err != nil {
return nil , err
}
if err := x . ClientStream . CloseSend ( ) ; err != nil {
return nil , err
}
return x , nil
}
2021-08-07 04:53:24 +00:00
type KV_StateChangesClient interface {
2021-09-17 02:56:04 +00:00
Recv ( ) ( * StateChangeBatch , error )
2021-07-01 15:35:06 +00:00
grpc . ClientStream
}
2021-08-07 04:53:24 +00:00
type kVStateChangesClient struct {
2021-07-01 15:35:06 +00:00
grpc . ClientStream
}
2021-09-17 02:56:04 +00:00
func ( x * kVStateChangesClient ) Recv ( ) ( * StateChangeBatch , error ) {
m := new ( StateChangeBatch )
2021-07-01 15:35:06 +00:00
if err := x . ClientStream . RecvMsg ( m ) ; err != nil {
return nil , err
}
return m , nil
}
2022-07-26 02:42:34 +00:00
func ( c * kVClient ) Snapshots ( ctx context . Context , in * SnapshotsRequest , opts ... grpc . CallOption ) ( * SnapshotsReply , error ) {
out := new ( SnapshotsReply )
2023-03-09 02:48:16 +00:00
err := c . cc . Invoke ( ctx , KV_Snapshots_FullMethodName , in , out , opts ... )
2022-07-26 02:28:10 +00:00
if err != nil {
return nil , err
}
2022-07-26 02:42:34 +00:00
return out , nil
2022-07-26 02:28:10 +00:00
}
2023-03-25 03:51:41 +00:00
func ( c * kVClient ) Range ( ctx context . Context , in * RangeReq , opts ... grpc . CallOption ) ( * Pairs , error ) {
out := new ( Pairs )
err := c . cc . Invoke ( ctx , KV_Range_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2023-01-06 07:27:50 +00:00
func ( c * kVClient ) DomainGet ( ctx context . Context , in * DomainGetReq , opts ... grpc . CallOption ) ( * DomainGetReply , error ) {
out := new ( DomainGetReply )
2023-03-09 02:48:16 +00:00
err := c . cc . Invoke ( ctx , KV_DomainGet_FullMethodName , in , out , opts ... )
2022-12-26 10:58:17 +00:00
if err != nil {
return nil , err
}
2023-01-06 07:27:50 +00:00
return out , nil
}
func ( c * kVClient ) HistoryGet ( ctx context . Context , in * HistoryGetReq , opts ... grpc . CallOption ) ( * HistoryGetReply , error ) {
out := new ( HistoryGetReply )
2023-03-09 02:48:16 +00:00
err := c . cc . Invoke ( ctx , KV_HistoryGet_FullMethodName , in , out , opts ... )
2023-01-06 07:27:50 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2023-01-20 11:08:22 +00:00
func ( c * kVClient ) IndexRange ( ctx context . Context , in * IndexRangeReq , opts ... grpc . CallOption ) ( * IndexRangeReply , error ) {
out := new ( IndexRangeReply )
2023-03-09 02:48:16 +00:00
err := c . cc . Invoke ( ctx , KV_IndexRange_FullMethodName , in , out , opts ... )
2023-01-06 07:27:50 +00:00
if err != nil {
return nil , err
}
2023-01-20 11:08:22 +00:00
return out , nil
}
2023-03-25 03:51:41 +00:00
func ( c * kVClient ) HistoryRange ( ctx context . Context , in * HistoryRangeReq , opts ... grpc . CallOption ) ( * Pairs , error ) {
2023-01-20 11:08:22 +00:00
out := new ( Pairs )
2023-03-25 03:51:41 +00:00
err := c . cc . Invoke ( ctx , KV_HistoryRange_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * kVClient ) DomainRange ( ctx context . Context , in * DomainRangeReq , opts ... grpc . CallOption ) ( * Pairs , error ) {
out := new ( Pairs )
err := c . cc . Invoke ( ctx , KV_DomainRange_FullMethodName , in , out , opts ... )
2023-01-20 11:08:22 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2021-07-01 15:35:06 +00:00
// KVServer is the server API for KV service.
// All implementations must embed UnimplementedKVServer
// for forward compatibility
type KVServer interface {
// Version returns the service version number
Version ( context . Context , * emptypb . Empty ) ( * types . VersionReply , error )
// Tx exposes read-only transactions for the key-value store
2021-09-15 06:11:34 +00:00
//
// When tx open, client must receive 1 message from server with txID
2021-09-26 12:47:11 +00:00
// When cursor open, client must receive 1 message from server with cursorID
2021-09-15 06:11:34 +00:00
// Then only client can initiate messages from server
2021-07-01 15:35:06 +00:00
Tx ( KV_TxServer ) error
2021-08-07 04:53:24 +00:00
StateChanges ( * StateChangeRequest , KV_StateChangesServer ) error
2022-07-26 02:28:10 +00:00
// Snapshots returns list of current snapshot files. Then client can just open all of them.
2022-07-26 02:42:34 +00:00
Snapshots ( context . Context , * SnapshotsRequest ) ( * SnapshotsReply , error )
2023-01-20 11:08:22 +00:00
// Range [from, to)
// Range(from, nil) means [from, EndOfTable)
// Range(nil, to) means [StartOfTable, to)
// If orderAscend=false server expecting `from`<`to`. Example: Range("B", "A")
Range ( context . Context , * RangeReq ) ( * Pairs , error )
2023-03-25 03:51:41 +00:00
// Temporal methods
DomainGet ( context . Context , * DomainGetReq ) ( * DomainGetReply , error )
HistoryGet ( context . Context , * HistoryGetReq ) ( * HistoryGetReply , error )
IndexRange ( context . Context , * IndexRangeReq ) ( * IndexRangeReply , error )
HistoryRange ( context . Context , * HistoryRangeReq ) ( * Pairs , error )
DomainRange ( context . Context , * DomainRangeReq ) ( * Pairs , error )
2021-07-01 15:35:06 +00:00
mustEmbedUnimplementedKVServer ( )
}
// UnimplementedKVServer must be embedded to have forward compatible implementations.
type UnimplementedKVServer struct {
}
func ( UnimplementedKVServer ) Version ( context . Context , * emptypb . Empty ) ( * types . VersionReply , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Version not implemented" )
}
func ( UnimplementedKVServer ) Tx ( KV_TxServer ) error {
return status . Errorf ( codes . Unimplemented , "method Tx not implemented" )
}
2021-08-07 04:53:24 +00:00
func ( UnimplementedKVServer ) StateChanges ( * StateChangeRequest , KV_StateChangesServer ) error {
return status . Errorf ( codes . Unimplemented , "method StateChanges not implemented" )
2021-07-01 15:35:06 +00:00
}
2022-07-26 02:42:34 +00:00
func ( UnimplementedKVServer ) Snapshots ( context . Context , * SnapshotsRequest ) ( * SnapshotsReply , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Snapshots not implemented" )
2022-07-26 02:28:10 +00:00
}
2023-03-25 03:51:41 +00:00
func ( UnimplementedKVServer ) Range ( context . Context , * RangeReq ) ( * Pairs , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Range not implemented" )
}
2023-01-06 07:27:50 +00:00
func ( UnimplementedKVServer ) DomainGet ( context . Context , * DomainGetReq ) ( * DomainGetReply , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DomainGet not implemented" )
2022-12-26 10:58:17 +00:00
}
2022-12-24 06:11:09 +00:00
func ( UnimplementedKVServer ) HistoryGet ( context . Context , * HistoryGetReq ) ( * HistoryGetReply , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method HistoryGet not implemented" )
}
2023-01-20 11:08:22 +00:00
func ( UnimplementedKVServer ) IndexRange ( context . Context , * IndexRangeReq ) ( * IndexRangeReply , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method IndexRange not implemented" )
}
2023-03-25 03:51:41 +00:00
func ( UnimplementedKVServer ) HistoryRange ( context . Context , * HistoryRangeReq ) ( * Pairs , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method HistoryRange not implemented" )
}
func ( UnimplementedKVServer ) DomainRange ( context . Context , * DomainRangeReq ) ( * Pairs , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DomainRange not implemented" )
2022-12-24 06:11:09 +00:00
}
2021-07-01 15:35:06 +00:00
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_Version_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( emptypb . Empty )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( KVServer ) . Version ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-03-09 02:48:16 +00:00
FullMethod : KV_Version_FullMethodName ,
2021-07-01 15:35:06 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( KVServer ) . Version ( ctx , req . ( * emptypb . Empty ) )
}
return interceptor ( ctx , in , info , handler )
}
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
}
2021-08-07 04:53:24 +00:00
func _KV_StateChanges_Handler ( srv interface { } , stream grpc . ServerStream ) error {
m := new ( StateChangeRequest )
2021-07-01 15:35:06 +00:00
if err := stream . RecvMsg ( m ) ; err != nil {
return err
}
2021-08-07 04:53:24 +00:00
return srv . ( KVServer ) . StateChanges ( m , & kVStateChangesServer { stream } )
2021-07-01 15:35:06 +00:00
}
2021-08-07 04:53:24 +00:00
type KV_StateChangesServer interface {
2021-09-17 02:56:04 +00:00
Send ( * StateChangeBatch ) error
2021-07-01 15:35:06 +00:00
grpc . ServerStream
}
2021-08-07 04:53:24 +00:00
type kVStateChangesServer struct {
2021-07-01 15:35:06 +00:00
grpc . ServerStream
}
2021-09-17 02:56:04 +00:00
func ( x * kVStateChangesServer ) Send ( m * StateChangeBatch ) error {
2021-07-01 15:35:06 +00:00
return x . ServerStream . SendMsg ( m )
}
2022-07-26 02:42:34 +00:00
func _KV_Snapshots_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SnapshotsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
2022-07-26 02:28:10 +00:00
}
2022-07-26 02:42:34 +00:00
if interceptor == nil {
return srv . ( KVServer ) . Snapshots ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-03-09 02:48:16 +00:00
FullMethod : KV_Snapshots_FullMethodName ,
2022-07-26 02:42:34 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( KVServer ) . Snapshots ( ctx , req . ( * SnapshotsRequest ) )
}
return interceptor ( ctx , in , info , handler )
2022-07-26 02:28:10 +00:00
}
2023-03-25 03:51:41 +00:00
func _KV_Range_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( RangeReq )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( KVServer ) . Range ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : KV_Range_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( KVServer ) . Range ( ctx , req . ( * RangeReq ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-01-06 07:27:50 +00:00
func _KV_DomainGet_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DomainGetReq )
if err := dec ( in ) ; err != nil {
return nil , err
2022-12-26 10:58:17 +00:00
}
2023-01-06 07:27:50 +00:00
if interceptor == nil {
return srv . ( KVServer ) . DomainGet ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-03-09 02:48:16 +00:00
FullMethod : KV_DomainGet_FullMethodName ,
2023-01-06 07:27:50 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( KVServer ) . DomainGet ( ctx , req . ( * DomainGetReq ) )
}
return interceptor ( ctx , in , info , handler )
2022-12-26 10:58:17 +00:00
}
2022-12-24 06:11:09 +00:00
func _KV_HistoryGet_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( HistoryGetReq )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( KVServer ) . HistoryGet ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-03-09 02:48:16 +00:00
FullMethod : KV_HistoryGet_FullMethodName ,
2022-12-24 06:11:09 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( KVServer ) . HistoryGet ( ctx , req . ( * HistoryGetReq ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-01-20 11:08:22 +00:00
func _KV_IndexRange_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( IndexRangeReq )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( KVServer ) . IndexRange ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-03-09 02:48:16 +00:00
FullMethod : KV_IndexRange_FullMethodName ,
2023-01-20 11:08:22 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( KVServer ) . IndexRange ( ctx , req . ( * IndexRangeReq ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-03-25 03:51:41 +00:00
func _KV_HistoryRange_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( HistoryRangeReq )
2023-01-20 11:08:22 +00:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-03-25 03:51:41 +00:00
return srv . ( KVServer ) . HistoryRange ( ctx , in )
2023-01-20 11:08:22 +00:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-03-25 03:51:41 +00:00
FullMethod : KV_HistoryRange_FullMethodName ,
2023-01-20 11:08:22 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-03-25 03:51:41 +00:00
return srv . ( KVServer ) . HistoryRange ( ctx , req . ( * HistoryRangeReq ) )
}
return interceptor ( ctx , in , info , handler )
}
func _KV_DomainRange_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DomainRangeReq )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( KVServer ) . DomainRange ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : KV_DomainRange_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( KVServer ) . DomainRange ( ctx , req . ( * DomainRangeReq ) )
2023-01-20 11:08:22 +00:00
}
return interceptor ( ctx , in , info , handler )
}
2021-07-01 15:35:06 +00:00
// KV_ServiceDesc is the grpc.ServiceDesc for KV service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var KV_ServiceDesc = grpc . ServiceDesc {
ServiceName : "remote.KV" ,
HandlerType : ( * KVServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
MethodName : "Version" ,
Handler : _KV_Version_Handler ,
} ,
2022-07-26 02:42:34 +00:00
{
MethodName : "Snapshots" ,
Handler : _KV_Snapshots_Handler ,
} ,
2023-03-25 03:51:41 +00:00
{
MethodName : "Range" ,
Handler : _KV_Range_Handler ,
} ,
2023-01-06 07:27:50 +00:00
{
MethodName : "DomainGet" ,
Handler : _KV_DomainGet_Handler ,
} ,
2022-12-24 06:11:09 +00:00
{
MethodName : "HistoryGet" ,
Handler : _KV_HistoryGet_Handler ,
} ,
2023-01-20 11:08:22 +00:00
{
MethodName : "IndexRange" ,
Handler : _KV_IndexRange_Handler ,
} ,
{
2023-03-25 03:51:41 +00:00
MethodName : "HistoryRange" ,
Handler : _KV_HistoryRange_Handler ,
} ,
{
MethodName : "DomainRange" ,
Handler : _KV_DomainRange_Handler ,
2023-01-20 11:08:22 +00:00
} ,
2021-07-01 15:35:06 +00:00
} ,
Streams : [ ] grpc . StreamDesc {
{
StreamName : "Tx" ,
Handler : _KV_Tx_Handler ,
ServerStreams : true ,
ClientStreams : true ,
} ,
{
2021-08-07 04:53:24 +00:00
StreamName : "StateChanges" ,
Handler : _KV_StateChanges_Handler ,
2021-07-01 15:35:06 +00:00
ServerStreams : true ,
} ,
} ,
Metadata : "remote/kv.proto" ,
}