Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMockSLServer(s grpc.ServiceRegistrar, srv MockSLServer)
- type MockSLClient
- type MockSLServer
- type SLGetBatchReply
- func (*SLGetBatchReply) Descriptor() ([]byte, []int)deprecated
- func (x *SLGetBatchReply) GetBatch() []byte
- func (x *SLGetBatchReply) GetIndex() uint64
- func (*SLGetBatchReply) ProtoMessage()
- func (x *SLGetBatchReply) ProtoReflect() protoreflect.Message
- func (x *SLGetBatchReply) Reset()
- func (x *SLGetBatchReply) String() string
- type SLGetBatchRequest
- type SLGetIndexReply
- type SLGetIndexRequest
- type SLSetBatchReply
- type SLSetBatchRequest
- func (*SLSetBatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SLSetBatchRequest) GetBatch() []byte
- func (x *SLSetBatchRequest) GetIndex() uint64
- func (*SLSetBatchRequest) ProtoMessage()
- func (x *SLSetBatchRequest) ProtoReflect() protoreflect.Message
- func (x *SLSetBatchRequest) Reset()
- func (x *SLSetBatchRequest) String() string
- type SLSetIndexRequest
- type SLSetIndexResult
- type UnimplementedMockSLServer
- func (UnimplementedMockSLServer) GetBatch(context.Context, *SLGetBatchRequest) (*SLGetBatchReply, error)
- func (UnimplementedMockSLServer) GetIndex(context.Context, *SLGetIndexRequest) (*SLGetIndexReply, error)
- func (UnimplementedMockSLServer) SetBatch(context.Context, *SLSetBatchRequest) (*SLSetBatchReply, error)
- func (UnimplementedMockSLServer) SetIndex(context.Context, *SLSetIndexRequest) (*SLSetIndexResult, error)
- type UnsafeMockSLServer
Constants ¶
const ( MockSL_GetIndex_FullMethodName = "/settlement.MockSL/GetIndex" MockSL_SetIndex_FullMethodName = "/settlement.MockSL/SetIndex" MockSL_SetBatch_FullMethodName = "/settlement.MockSL/SetBatch" MockSL_GetBatch_FullMethodName = "/settlement.MockSL/GetBatch" )
Variables ¶
var File_sl_proto protoreflect.FileDescriptor
var MockSL_ServiceDesc = grpc.ServiceDesc{ ServiceName: "settlement.MockSL", HandlerType: (*MockSLServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetIndex", Handler: _MockSL_GetIndex_Handler, }, { MethodName: "SetIndex", Handler: _MockSL_SetIndex_Handler, }, { MethodName: "SetBatch", Handler: _MockSL_SetBatch_Handler, }, { MethodName: "GetBatch", Handler: _MockSL_GetBatch_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sl.proto", }
MockSL_ServiceDesc is the grpc.ServiceDesc for MockSL service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMockSLServer ¶
func RegisterMockSLServer(s grpc.ServiceRegistrar, srv MockSLServer)
Types ¶
type MockSLClient ¶
type MockSLClient interface { // Sends a greeting GetIndex(ctx context.Context, in *SLGetIndexRequest, opts ...grpc.CallOption) (*SLGetIndexReply, error) SetIndex(ctx context.Context, in *SLSetIndexRequest, opts ...grpc.CallOption) (*SLSetIndexResult, error) SetBatch(ctx context.Context, in *SLSetBatchRequest, opts ...grpc.CallOption) (*SLSetBatchReply, error) GetBatch(ctx context.Context, in *SLGetBatchRequest, opts ...grpc.CallOption) (*SLGetBatchReply, error) }
MockSLClient is the client API for MockSL 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.
func NewMockSLClient ¶
func NewMockSLClient(cc grpc.ClientConnInterface) MockSLClient
type MockSLServer ¶
type MockSLServer interface { // Sends a greeting GetIndex(context.Context, *SLGetIndexRequest) (*SLGetIndexReply, error) SetIndex(context.Context, *SLSetIndexRequest) (*SLSetIndexResult, error) SetBatch(context.Context, *SLSetBatchRequest) (*SLSetBatchReply, error) GetBatch(context.Context, *SLGetBatchRequest) (*SLGetBatchReply, error) // contains filtered or unexported methods }
MockSLServer is the server API for MockSL service. All implementations must embed UnimplementedMockSLServer for forward compatibility
type SLGetBatchReply ¶
type SLGetBatchReply struct { Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Batch []byte `protobuf:"bytes,2,opt,name=batch,proto3" json:"batch,omitempty"` // contains filtered or unexported fields }
func (*SLGetBatchReply) Descriptor
deprecated
func (*SLGetBatchReply) Descriptor() ([]byte, []int)
Deprecated: Use SLGetBatchReply.ProtoReflect.Descriptor instead.
func (*SLGetBatchReply) GetBatch ¶
func (x *SLGetBatchReply) GetBatch() []byte
func (*SLGetBatchReply) GetIndex ¶
func (x *SLGetBatchReply) GetIndex() uint64
func (*SLGetBatchReply) ProtoMessage ¶
func (*SLGetBatchReply) ProtoMessage()
func (*SLGetBatchReply) ProtoReflect ¶
func (x *SLGetBatchReply) ProtoReflect() protoreflect.Message
func (*SLGetBatchReply) Reset ¶
func (x *SLGetBatchReply) Reset()
func (*SLGetBatchReply) String ¶
func (x *SLGetBatchReply) String() string
type SLGetBatchRequest ¶
type SLGetBatchRequest struct { Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // contains filtered or unexported fields }
func (*SLGetBatchRequest) Descriptor
deprecated
func (*SLGetBatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SLGetBatchRequest.ProtoReflect.Descriptor instead.
func (*SLGetBatchRequest) GetIndex ¶
func (x *SLGetBatchRequest) GetIndex() uint64
func (*SLGetBatchRequest) ProtoMessage ¶
func (*SLGetBatchRequest) ProtoMessage()
func (*SLGetBatchRequest) ProtoReflect ¶
func (x *SLGetBatchRequest) ProtoReflect() protoreflect.Message
func (*SLGetBatchRequest) Reset ¶
func (x *SLGetBatchRequest) Reset()
func (*SLGetBatchRequest) String ¶
func (x *SLGetBatchRequest) String() string
type SLGetIndexReply ¶
type SLGetIndexReply struct { Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // contains filtered or unexported fields }
The response message containing the greetings
func (*SLGetIndexReply) Descriptor
deprecated
func (*SLGetIndexReply) Descriptor() ([]byte, []int)
Deprecated: Use SLGetIndexReply.ProtoReflect.Descriptor instead.
func (*SLGetIndexReply) GetIndex ¶
func (x *SLGetIndexReply) GetIndex() uint64
func (*SLGetIndexReply) ProtoMessage ¶
func (*SLGetIndexReply) ProtoMessage()
func (*SLGetIndexReply) ProtoReflect ¶
func (x *SLGetIndexReply) ProtoReflect() protoreflect.Message
func (*SLGetIndexReply) Reset ¶
func (x *SLGetIndexReply) Reset()
func (*SLGetIndexReply) String ¶
func (x *SLGetIndexReply) String() string
type SLGetIndexRequest ¶
type SLGetIndexRequest struct {
// contains filtered or unexported fields
}
The request message containing the user's name.
func (*SLGetIndexRequest) Descriptor
deprecated
func (*SLGetIndexRequest) Descriptor() ([]byte, []int)
Deprecated: Use SLGetIndexRequest.ProtoReflect.Descriptor instead.
func (*SLGetIndexRequest) ProtoMessage ¶
func (*SLGetIndexRequest) ProtoMessage()
func (*SLGetIndexRequest) ProtoReflect ¶
func (x *SLGetIndexRequest) ProtoReflect() protoreflect.Message
func (*SLGetIndexRequest) Reset ¶
func (x *SLGetIndexRequest) Reset()
func (*SLGetIndexRequest) String ¶
func (x *SLGetIndexRequest) String() string
type SLSetBatchReply ¶
type SLSetBatchReply struct { Result uint64 `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*SLSetBatchReply) Descriptor
deprecated
func (*SLSetBatchReply) Descriptor() ([]byte, []int)
Deprecated: Use SLSetBatchReply.ProtoReflect.Descriptor instead.
func (*SLSetBatchReply) GetResult ¶
func (x *SLSetBatchReply) GetResult() uint64
func (*SLSetBatchReply) ProtoMessage ¶
func (*SLSetBatchReply) ProtoMessage()
func (*SLSetBatchReply) ProtoReflect ¶
func (x *SLSetBatchReply) ProtoReflect() protoreflect.Message
func (*SLSetBatchReply) Reset ¶
func (x *SLSetBatchReply) Reset()
func (*SLSetBatchReply) String ¶
func (x *SLSetBatchReply) String() string
type SLSetBatchRequest ¶
type SLSetBatchRequest struct { Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Batch []byte `protobuf:"bytes,2,opt,name=batch,proto3" json:"batch,omitempty"` // contains filtered or unexported fields }
func (*SLSetBatchRequest) Descriptor
deprecated
func (*SLSetBatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SLSetBatchRequest.ProtoReflect.Descriptor instead.
func (*SLSetBatchRequest) GetBatch ¶
func (x *SLSetBatchRequest) GetBatch() []byte
func (*SLSetBatchRequest) GetIndex ¶
func (x *SLSetBatchRequest) GetIndex() uint64
func (*SLSetBatchRequest) ProtoMessage ¶
func (*SLSetBatchRequest) ProtoMessage()
func (*SLSetBatchRequest) ProtoReflect ¶
func (x *SLSetBatchRequest) ProtoReflect() protoreflect.Message
func (*SLSetBatchRequest) Reset ¶
func (x *SLSetBatchRequest) Reset()
func (*SLSetBatchRequest) String ¶
func (x *SLSetBatchRequest) String() string
type SLSetIndexRequest ¶
type SLSetIndexRequest struct { Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // contains filtered or unexported fields }
The request message containing the user's name.
func (*SLSetIndexRequest) Descriptor
deprecated
func (*SLSetIndexRequest) Descriptor() ([]byte, []int)
Deprecated: Use SLSetIndexRequest.ProtoReflect.Descriptor instead.
func (*SLSetIndexRequest) GetIndex ¶
func (x *SLSetIndexRequest) GetIndex() uint64
func (*SLSetIndexRequest) ProtoMessage ¶
func (*SLSetIndexRequest) ProtoMessage()
func (*SLSetIndexRequest) ProtoReflect ¶
func (x *SLSetIndexRequest) ProtoReflect() protoreflect.Message
func (*SLSetIndexRequest) Reset ¶
func (x *SLSetIndexRequest) Reset()
func (*SLSetIndexRequest) String ¶
func (x *SLSetIndexRequest) String() string
type SLSetIndexResult ¶
type SLSetIndexResult struct { Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // contains filtered or unexported fields }
The request message containing the user's name.
func (*SLSetIndexResult) Descriptor
deprecated
func (*SLSetIndexResult) Descriptor() ([]byte, []int)
Deprecated: Use SLSetIndexResult.ProtoReflect.Descriptor instead.
func (*SLSetIndexResult) GetIndex ¶
func (x *SLSetIndexResult) GetIndex() uint64
func (*SLSetIndexResult) ProtoMessage ¶
func (*SLSetIndexResult) ProtoMessage()
func (*SLSetIndexResult) ProtoReflect ¶
func (x *SLSetIndexResult) ProtoReflect() protoreflect.Message
func (*SLSetIndexResult) Reset ¶
func (x *SLSetIndexResult) Reset()
func (*SLSetIndexResult) String ¶
func (x *SLSetIndexResult) String() string
type UnimplementedMockSLServer ¶
type UnimplementedMockSLServer struct { }
UnimplementedMockSLServer must be embedded to have forward compatible implementations.
func (UnimplementedMockSLServer) GetBatch ¶
func (UnimplementedMockSLServer) GetBatch(context.Context, *SLGetBatchRequest) (*SLGetBatchReply, error)
func (UnimplementedMockSLServer) GetIndex ¶
func (UnimplementedMockSLServer) GetIndex(context.Context, *SLGetIndexRequest) (*SLGetIndexReply, error)
func (UnimplementedMockSLServer) SetBatch ¶
func (UnimplementedMockSLServer) SetBatch(context.Context, *SLSetBatchRequest) (*SLSetBatchReply, error)
func (UnimplementedMockSLServer) SetIndex ¶
func (UnimplementedMockSLServer) SetIndex(context.Context, *SLSetIndexRequest) (*SLSetIndexResult, error)
type UnsafeMockSLServer ¶
type UnsafeMockSLServer interface {
// contains filtered or unexported methods
}
UnsafeMockSLServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MockSLServer will result in compilation errors.