Documentation ¶
Index ¶
- Variables
- func RegisterStateDBServiceServer(s grpc.ServiceRegistrar, srv StateDBServiceServer)
- type Fea
- type GetProgramRequest
- type GetProgramResponse
- func (*GetProgramResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProgramResponse) GetData() []byte
- func (x *GetProgramResponse) GetResult() *ResultCode
- func (*GetProgramResponse) ProtoMessage()
- func (x *GetProgramResponse) ProtoReflect() protoreflect.Message
- func (x *GetProgramResponse) Reset()
- func (x *GetProgramResponse) String() string
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRequest) GetDetails() bool
- func (x *GetRequest) GetKey() *Fea
- func (x *GetRequest) GetRoot() *Fea
- func (*GetRequest) ProtoMessage()
- func (x *GetRequest) ProtoReflect() protoreflect.Message
- func (x *GetRequest) Reset()
- func (x *GetRequest) String() string
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetResponse) GetInsKey() *Fea
- func (x *GetResponse) GetInsValue() string
- func (x *GetResponse) GetIsOld0() bool
- func (x *GetResponse) GetKey() *Fea
- func (x *GetResponse) GetResult() *ResultCode
- func (x *GetResponse) GetRoot() *Fea
- func (x *GetResponse) GetSiblings() map[uint64]*SiblingList
- func (x *GetResponse) GetValue() string
- func (*GetResponse) ProtoMessage()
- func (x *GetResponse) ProtoReflect() protoreflect.Message
- func (x *GetResponse) Reset()
- func (x *GetResponse) String() string
- type ResultCode
- type ResultCode_Code
- func (ResultCode_Code) Descriptor() protoreflect.EnumDescriptor
- func (x ResultCode_Code) Enum() *ResultCode_Code
- func (ResultCode_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResultCode_Code) Number() protoreflect.EnumNumber
- func (x ResultCode_Code) String() string
- func (ResultCode_Code) Type() protoreflect.EnumType
- type SetProgramRequest
- func (*SetProgramRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetProgramRequest) GetData() []byte
- func (x *SetProgramRequest) GetKey() *Fea
- func (x *SetProgramRequest) GetPersistent() bool
- func (*SetProgramRequest) ProtoMessage()
- func (x *SetProgramRequest) ProtoReflect() protoreflect.Message
- func (x *SetProgramRequest) Reset()
- func (x *SetProgramRequest) String() string
- type SetProgramResponse
- func (*SetProgramResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetProgramResponse) GetResult() *ResultCode
- func (*SetProgramResponse) ProtoMessage()
- func (x *SetProgramResponse) ProtoReflect() protoreflect.Message
- func (x *SetProgramResponse) Reset()
- func (x *SetProgramResponse) String() string
- type SetRequest
- func (*SetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetRequest) GetDetails() bool
- func (x *SetRequest) GetKey() *Fea
- func (x *SetRequest) GetOldRoot() *Fea
- func (x *SetRequest) GetPersistent() bool
- func (x *SetRequest) GetValue() string
- func (*SetRequest) ProtoMessage()
- func (x *SetRequest) ProtoReflect() protoreflect.Message
- func (x *SetRequest) Reset()
- func (x *SetRequest) String() string
- type SetResponse
- func (*SetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetResponse) GetInsKey() *Fea
- func (x *SetResponse) GetInsValue() string
- func (x *SetResponse) GetIsOld0() bool
- func (x *SetResponse) GetKey() *Fea
- func (x *SetResponse) GetMode() string
- func (x *SetResponse) GetNewRoot() *Fea
- func (x *SetResponse) GetNewValue() string
- func (x *SetResponse) GetOldRoot() *Fea
- func (x *SetResponse) GetOldValue() string
- func (x *SetResponse) GetResult() *ResultCode
- func (x *SetResponse) GetSiblings() map[uint64]*SiblingList
- func (*SetResponse) ProtoMessage()
- func (x *SetResponse) ProtoReflect() protoreflect.Message
- func (x *SetResponse) Reset()
- func (x *SetResponse) String() string
- type SiblingList
- type StateDBServiceClient
- type StateDBServiceServer
- type UnimplementedStateDBServiceServer
- func (UnimplementedStateDBServiceServer) Flush(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (UnimplementedStateDBServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedStateDBServiceServer) GetProgram(context.Context, *GetProgramRequest) (*GetProgramResponse, error)
- func (UnimplementedStateDBServiceServer) Set(context.Context, *SetRequest) (*SetResponse, error)
- func (UnimplementedStateDBServiceServer) SetProgram(context.Context, *SetProgramRequest) (*SetProgramResponse, error)
- type UnsafeStateDBServiceServer
- type Version
Constants ¶
This section is empty.
Variables ¶
var ( ResultCode_Code_name = map[int32]string{ 0: "CODE_UNSPECIFIED", 1: "CODE_SUCCESS", 2: "CODE_KEY_NOT_FOUND", 3: "CODE_DB_ERROR", 4: "CODE_INTERNAL_ERROR", } ResultCode_Code_value = map[string]int32{ "CODE_UNSPECIFIED": 0, "CODE_SUCCESS": 1, "CODE_KEY_NOT_FOUND": 2, "CODE_DB_ERROR": 3, "CODE_INTERNAL_ERROR": 4, } )
Enum value maps for ResultCode_Code.
var File_statedb_proto protoreflect.FileDescriptor
var StateDBService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "statedb.v1.StateDBService", HandlerType: (*StateDBServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Set", Handler: _StateDBService_Set_Handler, }, { MethodName: "Get", Handler: _StateDBService_Get_Handler, }, { MethodName: "SetProgram", Handler: _StateDBService_SetProgram_Handler, }, { MethodName: "GetProgram", Handler: _StateDBService_GetProgram_Handler, }, { MethodName: "Flush", Handler: _StateDBService_Flush_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "statedb.proto", }
StateDBService_ServiceDesc is the grpc.ServiceDesc for StateDBService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStateDBServiceServer ¶
func RegisterStateDBServiceServer(s grpc.ServiceRegistrar, srv StateDBServiceServer)
Types ¶
type Fea ¶
type Fea struct { Fe0 uint64 `protobuf:"varint,1,opt,name=fe0,proto3" json:"fe0,omitempty"` Fe1 uint64 `protobuf:"varint,2,opt,name=fe1,proto3" json:"fe1,omitempty"` Fe2 uint64 `protobuf:"varint,3,opt,name=fe2,proto3" json:"fe2,omitempty"` Fe3 uint64 `protobuf:"varint,4,opt,name=fe3,proto3" json:"fe3,omitempty"` // contains filtered or unexported fields }
* @dev Array of 4 FE @param {fe0} - Field Element value for pos 0 @param {fe1} - Field Element value for pos 1 @param {fe2} - Field Element value for pos 2 @param {fe3} - Field Element value for pos 3
func (*Fea) Descriptor
deprecated
func (*Fea) ProtoMessage ¶
func (*Fea) ProtoMessage()
func (*Fea) ProtoReflect ¶
func (x *Fea) ProtoReflect() protoreflect.Message
type GetProgramRequest ¶
type GetProgramRequest struct { Key *Fea `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
* @dev GetProgramRequest @param {key} - hash to get program data
func (*GetProgramRequest) Descriptor
deprecated
func (*GetProgramRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProgramRequest.ProtoReflect.Descriptor instead.
func (*GetProgramRequest) GetKey ¶
func (x *GetProgramRequest) GetKey() *Fea
func (*GetProgramRequest) ProtoMessage ¶
func (*GetProgramRequest) ProtoMessage()
func (*GetProgramRequest) ProtoReflect ¶
func (x *GetProgramRequest) ProtoReflect() protoreflect.Message
func (*GetProgramRequest) Reset ¶
func (x *GetProgramRequest) Reset()
func (*GetProgramRequest) String ¶
func (x *GetProgramRequest) String() string
type GetProgramResponse ¶
type GetProgramResponse struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Result *ResultCode `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
* @dev GetProgramResponse @param {data} - program data retrieved @param {result} - result code
func (*GetProgramResponse) Descriptor
deprecated
func (*GetProgramResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProgramResponse.ProtoReflect.Descriptor instead.
func (*GetProgramResponse) GetData ¶
func (x *GetProgramResponse) GetData() []byte
func (*GetProgramResponse) GetResult ¶
func (x *GetProgramResponse) GetResult() *ResultCode
func (*GetProgramResponse) ProtoMessage ¶
func (*GetProgramResponse) ProtoMessage()
func (*GetProgramResponse) ProtoReflect ¶
func (x *GetProgramResponse) ProtoReflect() protoreflect.Message
func (*GetProgramResponse) Reset ¶
func (x *GetProgramResponse) Reset()
func (*GetProgramResponse) String ¶
func (x *GetProgramResponse) String() string
type GetRequest ¶
type GetRequest struct { Root *Fea `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` Key *Fea `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Details bool `protobuf:"varint,3,opt,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
* @dev GetRequest @param {root} - merkle-tree root @param {key} - key to look for @param {details} - indicates if it should return all response parameters (true) or just the new root (false)
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetDetails ¶
func (x *GetRequest) GetDetails() bool
func (*GetRequest) GetKey ¶
func (x *GetRequest) GetKey() *Fea
func (*GetRequest) GetRoot ¶
func (x *GetRequest) GetRoot() *Fea
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Root *Fea `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` Key *Fea `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Siblings map[uint64]*SiblingList `` /* 158-byte string literal not displayed */ InsKey *Fea `protobuf:"bytes,4,opt,name=ins_key,json=insKey,proto3" json:"ins_key,omitempty"` InsValue string `protobuf:"bytes,5,opt,name=ins_value,json=insValue,proto3" json:"ins_value,omitempty"` IsOld0 bool `protobuf:"varint,6,opt,name=is_old0,json=isOld0,proto3" json:"is_old0,omitempty"` Value string `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` Result *ResultCode `protobuf:"bytes,8,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
* @dev GetResponse @param {root} - merkle-tree root @param {key} - key to look for @param {siblings} - array of siblings @param {ins_key} - key found @param {ins_value} - value found (HEX string format) @param {is_old0} - is new insert or delete @param {value} - value retrieved (HEX string format) @param {result} - result code
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetInsKey ¶
func (x *GetResponse) GetInsKey() *Fea
func (*GetResponse) GetInsValue ¶
func (x *GetResponse) GetInsValue() string
func (*GetResponse) GetIsOld0 ¶
func (x *GetResponse) GetIsOld0() bool
func (*GetResponse) GetKey ¶
func (x *GetResponse) GetKey() *Fea
func (*GetResponse) GetResult ¶
func (x *GetResponse) GetResult() *ResultCode
func (*GetResponse) GetRoot ¶
func (x *GetResponse) GetRoot() *Fea
func (*GetResponse) GetSiblings ¶
func (x *GetResponse) GetSiblings() map[uint64]*SiblingList
func (*GetResponse) GetValue ¶
func (x *GetResponse) GetValue() string
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type ResultCode ¶
type ResultCode struct { Code ResultCode_Code `protobuf:"varint,1,opt,name=code,proto3,enum=statedb.v1.ResultCode_Code" json:"code,omitempty"` // contains filtered or unexported fields }
* @dev Result code @param {code} - result code
func (*ResultCode) Descriptor
deprecated
func (*ResultCode) Descriptor() ([]byte, []int)
Deprecated: Use ResultCode.ProtoReflect.Descriptor instead.
func (*ResultCode) GetCode ¶
func (x *ResultCode) GetCode() ResultCode_Code
func (*ResultCode) ProtoMessage ¶
func (*ResultCode) ProtoMessage()
func (*ResultCode) ProtoReflect ¶
func (x *ResultCode) ProtoReflect() protoreflect.Message
func (*ResultCode) Reset ¶
func (x *ResultCode) Reset()
func (*ResultCode) String ¶
func (x *ResultCode) String() string
type ResultCode_Code ¶
type ResultCode_Code int32
const ( ResultCode_CODE_UNSPECIFIED ResultCode_Code = 0 ResultCode_CODE_SUCCESS ResultCode_Code = 1 ResultCode_CODE_KEY_NOT_FOUND ResultCode_Code = 2 ResultCode_CODE_DB_ERROR ResultCode_Code = 3 ResultCode_CODE_INTERNAL_ERROR ResultCode_Code = 4 )
func (ResultCode_Code) Descriptor ¶
func (ResultCode_Code) Descriptor() protoreflect.EnumDescriptor
func (ResultCode_Code) Enum ¶
func (x ResultCode_Code) Enum() *ResultCode_Code
func (ResultCode_Code) EnumDescriptor
deprecated
func (ResultCode_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResultCode_Code.Descriptor instead.
func (ResultCode_Code) Number ¶
func (x ResultCode_Code) Number() protoreflect.EnumNumber
func (ResultCode_Code) String ¶
func (x ResultCode_Code) String() string
func (ResultCode_Code) Type ¶
func (ResultCode_Code) Type() protoreflect.EnumType
type SetProgramRequest ¶
type SetProgramRequest struct { Key *Fea `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Persistent bool `protobuf:"varint,3,opt,name=persistent,proto3" json:"persistent,omitempty"` // contains filtered or unexported fields }
* @dev SetProgramRequest @param {key} - hash to set @param {data} - Program data to store @param {persistent} - indicates if it should be stored in the database (true) or only in the memory cache (false)
func (*SetProgramRequest) Descriptor
deprecated
func (*SetProgramRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetProgramRequest.ProtoReflect.Descriptor instead.
func (*SetProgramRequest) GetData ¶
func (x *SetProgramRequest) GetData() []byte
func (*SetProgramRequest) GetKey ¶
func (x *SetProgramRequest) GetKey() *Fea
func (*SetProgramRequest) GetPersistent ¶
func (x *SetProgramRequest) GetPersistent() bool
func (*SetProgramRequest) ProtoMessage ¶
func (*SetProgramRequest) ProtoMessage()
func (*SetProgramRequest) ProtoReflect ¶
func (x *SetProgramRequest) ProtoReflect() protoreflect.Message
func (*SetProgramRequest) Reset ¶
func (x *SetProgramRequest) Reset()
func (*SetProgramRequest) String ¶
func (x *SetProgramRequest) String() string
type SetProgramResponse ¶
type SetProgramResponse struct { Result *ResultCode `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
* @dev SetProgramResponse @param {result} - result code
func (*SetProgramResponse) Descriptor
deprecated
func (*SetProgramResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetProgramResponse.ProtoReflect.Descriptor instead.
func (*SetProgramResponse) GetResult ¶
func (x *SetProgramResponse) GetResult() *ResultCode
func (*SetProgramResponse) ProtoMessage ¶
func (*SetProgramResponse) ProtoMessage()
func (*SetProgramResponse) ProtoReflect ¶
func (x *SetProgramResponse) ProtoReflect() protoreflect.Message
func (*SetProgramResponse) Reset ¶
func (x *SetProgramResponse) Reset()
func (*SetProgramResponse) String ¶
func (x *SetProgramResponse) String() string
type SetRequest ¶
type SetRequest struct { OldRoot *Fea `protobuf:"bytes,1,opt,name=old_root,json=oldRoot,proto3" json:"old_root,omitempty"` Key *Fea `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` Persistent bool `protobuf:"varint,4,opt,name=persistent,proto3" json:"persistent,omitempty"` Details bool `protobuf:"varint,5,opt,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
* @dev SetRequest @param {old_root} - merkle-tree root @param {key} - key to set @param {value} - scalar value to set (HEX string format) @param {persistent} - indicates if it should be stored in the database (true) or only in the memory cache (false) @param {details} - indicates if it should return all response parameters (true) or just the new root (false)
func (*SetRequest) Descriptor
deprecated
func (*SetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetRequest.ProtoReflect.Descriptor instead.
func (*SetRequest) GetDetails ¶
func (x *SetRequest) GetDetails() bool
func (*SetRequest) GetKey ¶
func (x *SetRequest) GetKey() *Fea
func (*SetRequest) GetOldRoot ¶
func (x *SetRequest) GetOldRoot() *Fea
func (*SetRequest) GetPersistent ¶
func (x *SetRequest) GetPersistent() bool
func (*SetRequest) GetValue ¶
func (x *SetRequest) GetValue() string
func (*SetRequest) ProtoMessage ¶
func (*SetRequest) ProtoMessage()
func (*SetRequest) ProtoReflect ¶
func (x *SetRequest) ProtoReflect() protoreflect.Message
func (*SetRequest) Reset ¶
func (x *SetRequest) Reset()
func (*SetRequest) String ¶
func (x *SetRequest) String() string
type SetResponse ¶
type SetResponse struct { OldRoot *Fea `protobuf:"bytes,1,opt,name=old_root,json=oldRoot,proto3" json:"old_root,omitempty"` NewRoot *Fea `protobuf:"bytes,2,opt,name=new_root,json=newRoot,proto3" json:"new_root,omitempty"` Key *Fea `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` Siblings map[uint64]*SiblingList `` /* 158-byte string literal not displayed */ InsKey *Fea `protobuf:"bytes,5,opt,name=ins_key,json=insKey,proto3" json:"ins_key,omitempty"` InsValue string `protobuf:"bytes,6,opt,name=ins_value,json=insValue,proto3" json:"ins_value,omitempty"` IsOld0 bool `protobuf:"varint,7,opt,name=is_old0,json=isOld0,proto3" json:"is_old0,omitempty"` OldValue string `protobuf:"bytes,8,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty"` NewValue string `protobuf:"bytes,9,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"` Mode string `protobuf:"bytes,10,opt,name=mode,proto3" json:"mode,omitempty"` Result *ResultCode `protobuf:"bytes,11,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
* @dev SetResponse @param {old_root} - merkle-tree root @param {new_root} - merkle-tree new root @param {key} - key to look for @param {siblings} - array of siblings @param {ins_key} - key found @param {ins_value} - value found (HEX string format) @param {is_old0} - is new insert or delete @param {old_value} - old value (HEX string format) @param {new_value} - new value (HEX string format) @param {mode} @param {result} - result code
func (*SetResponse) Descriptor
deprecated
func (*SetResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetResponse.ProtoReflect.Descriptor instead.
func (*SetResponse) GetInsKey ¶
func (x *SetResponse) GetInsKey() *Fea
func (*SetResponse) GetInsValue ¶
func (x *SetResponse) GetInsValue() string
func (*SetResponse) GetIsOld0 ¶
func (x *SetResponse) GetIsOld0() bool
func (*SetResponse) GetKey ¶
func (x *SetResponse) GetKey() *Fea
func (*SetResponse) GetMode ¶
func (x *SetResponse) GetMode() string
func (*SetResponse) GetNewRoot ¶
func (x *SetResponse) GetNewRoot() *Fea
func (*SetResponse) GetNewValue ¶
func (x *SetResponse) GetNewValue() string
func (*SetResponse) GetOldRoot ¶
func (x *SetResponse) GetOldRoot() *Fea
func (*SetResponse) GetOldValue ¶
func (x *SetResponse) GetOldValue() string
func (*SetResponse) GetResult ¶
func (x *SetResponse) GetResult() *ResultCode
func (*SetResponse) GetSiblings ¶
func (x *SetResponse) GetSiblings() map[uint64]*SiblingList
func (*SetResponse) ProtoMessage ¶
func (*SetResponse) ProtoMessage()
func (*SetResponse) ProtoReflect ¶
func (x *SetResponse) ProtoReflect() protoreflect.Message
func (*SetResponse) Reset ¶
func (x *SetResponse) Reset()
func (*SetResponse) String ¶
func (x *SetResponse) String() string
type SiblingList ¶
type SiblingList struct { Sibling []uint64 `protobuf:"varint,1,rep,packed,name=sibling,proto3" json:"sibling,omitempty"` // contains filtered or unexported fields }
* @dev Siblings List @param {sibling} - sibling
func (*SiblingList) Descriptor
deprecated
func (*SiblingList) Descriptor() ([]byte, []int)
Deprecated: Use SiblingList.ProtoReflect.Descriptor instead.
func (*SiblingList) GetSibling ¶
func (x *SiblingList) GetSibling() []uint64
func (*SiblingList) ProtoMessage ¶
func (*SiblingList) ProtoMessage()
func (*SiblingList) ProtoReflect ¶
func (x *SiblingList) ProtoReflect() protoreflect.Message
func (*SiblingList) Reset ¶
func (x *SiblingList) Reset()
func (*SiblingList) String ¶
func (x *SiblingList) String() string
type StateDBServiceClient ¶
type StateDBServiceClient interface { Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) SetProgram(ctx context.Context, in *SetProgramRequest, opts ...grpc.CallOption) (*SetProgramResponse, error) GetProgram(ctx context.Context, in *GetProgramRequest, opts ...grpc.CallOption) (*GetProgramResponse, error) Flush(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) }
StateDBServiceClient is the client API for StateDBService 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 NewStateDBServiceClient ¶
func NewStateDBServiceClient(cc grpc.ClientConnInterface) StateDBServiceClient
type StateDBServiceServer ¶
type StateDBServiceServer interface { Set(context.Context, *SetRequest) (*SetResponse, error) Get(context.Context, *GetRequest) (*GetResponse, error) SetProgram(context.Context, *SetProgramRequest) (*SetProgramResponse, error) GetProgram(context.Context, *GetProgramRequest) (*GetProgramResponse, error) Flush(context.Context, *emptypb.Empty) (*emptypb.Empty, error) // contains filtered or unexported methods }
StateDBServiceServer is the server API for StateDBService service. All implementations must embed UnimplementedStateDBServiceServer for forward compatibility
type UnimplementedStateDBServiceServer ¶
type UnimplementedStateDBServiceServer struct { }
UnimplementedStateDBServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedStateDBServiceServer) Get ¶
func (UnimplementedStateDBServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedStateDBServiceServer) GetProgram ¶
func (UnimplementedStateDBServiceServer) GetProgram(context.Context, *GetProgramRequest) (*GetProgramResponse, error)
func (UnimplementedStateDBServiceServer) Set ¶
func (UnimplementedStateDBServiceServer) Set(context.Context, *SetRequest) (*SetResponse, error)
func (UnimplementedStateDBServiceServer) SetProgram ¶
func (UnimplementedStateDBServiceServer) SetProgram(context.Context, *SetProgramRequest) (*SetProgramResponse, error)
type UnsafeStateDBServiceServer ¶
type UnsafeStateDBServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStateDBServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StateDBServiceServer will result in compilation errors.
type Version ¶
type Version struct { V0_0_1 string `protobuf:"bytes,1,opt,name=v0_0_1,json=v001,proto3" json:"v0_0_1,omitempty"` // contains filtered or unexported fields }
func (*Version) Descriptor
deprecated
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) ProtoReflect ¶
func (x *Version) ProtoReflect() protoreflect.Message