Documentation ¶
Index ¶
- Variables
- func RegisterSharedMemoryServer(s grpc.ServiceRegistrar, srv SharedMemoryServer)
- type Batch
- func (*Batch) Descriptor() ([]byte, []int)deprecated
- func (x *Batch) GetDeletes() []*BatchDelete
- func (x *Batch) GetId() int64
- func (x *Batch) GetPuts() []*BatchPut
- func (*Batch) ProtoMessage()
- func (x *Batch) ProtoReflect() protoreflect.Message
- func (x *Batch) Reset()
- func (x *Batch) String() string
- type BatchDelete
- type BatchPut
- type Element
- func (*Element) Descriptor() ([]byte, []int)deprecated
- func (x *Element) GetKey() []byte
- func (x *Element) GetTraits() [][]byte
- func (x *Element) GetValue() []byte
- func (*Element) ProtoMessage()
- func (x *Element) ProtoReflect() protoreflect.Message
- func (x *Element) Reset()
- func (x *Element) String() string
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRequest) GetContinues() bool
- func (x *GetRequest) GetId() int64
- func (x *GetRequest) GetKeys() [][]byte
- func (x *GetRequest) GetPeerChainID() []byte
- 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) GetContinues() bool
- func (x *GetResponse) GetValues() [][]byte
- func (*GetResponse) ProtoMessage()
- func (x *GetResponse) ProtoReflect() protoreflect.Message
- func (x *GetResponse) Reset()
- func (x *GetResponse) String() string
- type IndexedRequest
- func (*IndexedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IndexedRequest) GetContinues() bool
- func (x *IndexedRequest) GetId() int64
- func (x *IndexedRequest) GetLimit() int32
- func (x *IndexedRequest) GetPeerChainID() []byte
- func (x *IndexedRequest) GetStartKey() []byte
- func (x *IndexedRequest) GetStartTrait() []byte
- func (x *IndexedRequest) GetTraits() [][]byte
- func (*IndexedRequest) ProtoMessage()
- func (x *IndexedRequest) ProtoReflect() protoreflect.Message
- func (x *IndexedRequest) Reset()
- func (x *IndexedRequest) String() string
- type IndexedResponse
- func (*IndexedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IndexedResponse) GetContinues() bool
- func (x *IndexedResponse) GetLastKey() []byte
- func (x *IndexedResponse) GetLastTrait() []byte
- func (x *IndexedResponse) GetValues() [][]byte
- func (*IndexedResponse) ProtoMessage()
- func (x *IndexedResponse) ProtoReflect() protoreflect.Message
- func (x *IndexedResponse) Reset()
- func (x *IndexedResponse) String() string
- type PutRequest
- func (*PutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PutRequest) GetBatches() []*Batch
- func (x *PutRequest) GetContinues() bool
- func (x *PutRequest) GetElems() []*Element
- func (x *PutRequest) GetId() int64
- func (x *PutRequest) GetPeerChainID() []byte
- func (*PutRequest) ProtoMessage()
- func (x *PutRequest) ProtoReflect() protoreflect.Message
- func (x *PutRequest) Reset()
- func (x *PutRequest) String() string
- type PutResponse
- type RemoveRequest
- func (*RemoveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveRequest) GetBatches() []*Batch
- func (x *RemoveRequest) GetContinues() bool
- func (x *RemoveRequest) GetId() int64
- func (x *RemoveRequest) GetKeys() [][]byte
- func (x *RemoveRequest) GetPeerChainID() []byte
- func (*RemoveRequest) ProtoMessage()
- func (x *RemoveRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveRequest) Reset()
- func (x *RemoveRequest) String() string
- type RemoveResponse
- type SharedMemoryClient
- type SharedMemoryServer
- type UnimplementedSharedMemoryServer
- func (UnimplementedSharedMemoryServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedSharedMemoryServer) Indexed(context.Context, *IndexedRequest) (*IndexedResponse, error)
- func (UnimplementedSharedMemoryServer) Put(context.Context, *PutRequest) (*PutResponse, error)
- func (UnimplementedSharedMemoryServer) Remove(context.Context, *RemoveRequest) (*RemoveResponse, error)
- type UnsafeSharedMemoryServer
Constants ¶
This section is empty.
Variables ¶
SharedMemoryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Put", Handler: _SharedMemory_Put_Handler, }, { MethodName: "Get", Handler: _SharedMemory_Get_Handler, }, { MethodName: "Indexed", Handler: _SharedMemory_Indexed_Handler, }, { MethodName: "Remove", Handler: _SharedMemory_Remove_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "gsharedmemory.proto", }ServiceName: "gsharedmemoryproto.SharedMemory", HandlerType: (*
SharedMemory_ServiceDesc is the grpc.ServiceDesc for SharedMemory service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSharedMemoryServer ¶
func RegisterSharedMemoryServer(s grpc.ServiceRegistrar, srv SharedMemoryServer)
Types ¶
type Batch ¶
type Batch struct { Puts []*BatchPut `protobuf:"bytes,1,rep,name=puts,proto3" json:"puts,omitempty"` Deletes []*BatchDelete `protobuf:"bytes,2,rep,name=deletes,proto3" json:"deletes,omitempty"` Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Batch) Descriptor
deprecated
func (*Batch) GetDeletes ¶
func (x *Batch) GetDeletes() []*BatchDelete
func (*Batch) ProtoMessage ¶
func (*Batch) ProtoMessage()
func (*Batch) ProtoReflect ¶ added in v1.4.7
func (x *Batch) ProtoReflect() protoreflect.Message
type BatchDelete ¶
type BatchDelete struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*BatchDelete) Descriptor
deprecated
func (*BatchDelete) Descriptor() ([]byte, []int)
Deprecated: Use BatchDelete.ProtoReflect.Descriptor instead.
func (*BatchDelete) GetKey ¶
func (x *BatchDelete) GetKey() []byte
func (*BatchDelete) ProtoMessage ¶
func (*BatchDelete) ProtoMessage()
func (*BatchDelete) ProtoReflect ¶ added in v1.4.7
func (x *BatchDelete) ProtoReflect() protoreflect.Message
func (*BatchDelete) Reset ¶
func (x *BatchDelete) Reset()
func (*BatchDelete) String ¶
func (x *BatchDelete) String() string
type BatchPut ¶
type BatchPut struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*BatchPut) Descriptor
deprecated
func (*BatchPut) ProtoMessage ¶
func (*BatchPut) ProtoMessage()
func (*BatchPut) ProtoReflect ¶ added in v1.4.7
func (x *BatchPut) ProtoReflect() protoreflect.Message
type Element ¶
type Element struct { Key []byte `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"` Traits [][]byte `protobuf:"bytes,3,rep,name=Traits,proto3" json:"Traits,omitempty"` // contains filtered or unexported fields }
func (*Element) Descriptor
deprecated
func (*Element) ProtoMessage ¶
func (*Element) ProtoMessage()
func (*Element) ProtoReflect ¶ added in v1.4.7
func (x *Element) ProtoReflect() protoreflect.Message
type GetRequest ¶
type GetRequest struct { PeerChainID []byte `protobuf:"bytes,1,opt,name=peerChainID,proto3" json:"peerChainID,omitempty"` Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` Continues bool `protobuf:"varint,4,opt,name=continues,proto3" json:"continues,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetContinues ¶
func (x *GetRequest) GetContinues() bool
func (*GetRequest) GetId ¶
func (x *GetRequest) GetId() int64
func (*GetRequest) GetKeys ¶
func (x *GetRequest) GetKeys() [][]byte
func (*GetRequest) GetPeerChainID ¶
func (x *GetRequest) GetPeerChainID() []byte
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶ added in v1.4.7
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 { Values [][]byte `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` Continues bool `protobuf:"varint,2,opt,name=continues,proto3" json:"continues,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetContinues ¶
func (x *GetResponse) GetContinues() bool
func (*GetResponse) GetValues ¶
func (x *GetResponse) GetValues() [][]byte
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶ added in v1.4.7
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type IndexedRequest ¶
type IndexedRequest struct { PeerChainID []byte `protobuf:"bytes,1,opt,name=peerChainID,proto3" json:"peerChainID,omitempty"` Traits [][]byte `protobuf:"bytes,2,rep,name=traits,proto3" json:"traits,omitempty"` StartTrait []byte `protobuf:"bytes,3,opt,name=startTrait,proto3" json:"startTrait,omitempty"` StartKey []byte `protobuf:"bytes,4,opt,name=startKey,proto3" json:"startKey,omitempty"` Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` Id int64 `protobuf:"varint,6,opt,name=id,proto3" json:"id,omitempty"` Continues bool `protobuf:"varint,7,opt,name=continues,proto3" json:"continues,omitempty"` // contains filtered or unexported fields }
func (*IndexedRequest) Descriptor
deprecated
func (*IndexedRequest) Descriptor() ([]byte, []int)
Deprecated: Use IndexedRequest.ProtoReflect.Descriptor instead.
func (*IndexedRequest) GetContinues ¶
func (x *IndexedRequest) GetContinues() bool
func (*IndexedRequest) GetId ¶
func (x *IndexedRequest) GetId() int64
func (*IndexedRequest) GetLimit ¶
func (x *IndexedRequest) GetLimit() int32
func (*IndexedRequest) GetPeerChainID ¶
func (x *IndexedRequest) GetPeerChainID() []byte
func (*IndexedRequest) GetStartKey ¶
func (x *IndexedRequest) GetStartKey() []byte
func (*IndexedRequest) GetStartTrait ¶
func (x *IndexedRequest) GetStartTrait() []byte
func (*IndexedRequest) GetTraits ¶
func (x *IndexedRequest) GetTraits() [][]byte
func (*IndexedRequest) ProtoMessage ¶
func (*IndexedRequest) ProtoMessage()
func (*IndexedRequest) ProtoReflect ¶ added in v1.4.7
func (x *IndexedRequest) ProtoReflect() protoreflect.Message
func (*IndexedRequest) Reset ¶
func (x *IndexedRequest) Reset()
func (*IndexedRequest) String ¶
func (x *IndexedRequest) String() string
type IndexedResponse ¶
type IndexedResponse struct { Values [][]byte `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` LastTrait []byte `protobuf:"bytes,2,opt,name=lastTrait,proto3" json:"lastTrait,omitempty"` LastKey []byte `protobuf:"bytes,3,opt,name=lastKey,proto3" json:"lastKey,omitempty"` Continues bool `protobuf:"varint,4,opt,name=continues,proto3" json:"continues,omitempty"` // contains filtered or unexported fields }
func (*IndexedResponse) Descriptor
deprecated
func (*IndexedResponse) Descriptor() ([]byte, []int)
Deprecated: Use IndexedResponse.ProtoReflect.Descriptor instead.
func (*IndexedResponse) GetContinues ¶
func (x *IndexedResponse) GetContinues() bool
func (*IndexedResponse) GetLastKey ¶
func (x *IndexedResponse) GetLastKey() []byte
func (*IndexedResponse) GetLastTrait ¶
func (x *IndexedResponse) GetLastTrait() []byte
func (*IndexedResponse) GetValues ¶
func (x *IndexedResponse) GetValues() [][]byte
func (*IndexedResponse) ProtoMessage ¶
func (*IndexedResponse) ProtoMessage()
func (*IndexedResponse) ProtoReflect ¶ added in v1.4.7
func (x *IndexedResponse) ProtoReflect() protoreflect.Message
func (*IndexedResponse) Reset ¶
func (x *IndexedResponse) Reset()
func (*IndexedResponse) String ¶
func (x *IndexedResponse) String() string
type PutRequest ¶
type PutRequest struct { PeerChainID []byte `protobuf:"bytes,1,opt,name=peerChainID,proto3" json:"peerChainID,omitempty"` Elems []*Element `protobuf:"bytes,2,rep,name=elems,proto3" json:"elems,omitempty"` Batches []*Batch `protobuf:"bytes,3,rep,name=batches,proto3" json:"batches,omitempty"` Id int64 `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"` Continues bool `protobuf:"varint,5,opt,name=continues,proto3" json:"continues,omitempty"` // contains filtered or unexported fields }
func (*PutRequest) Descriptor
deprecated
func (*PutRequest) Descriptor() ([]byte, []int)
Deprecated: Use PutRequest.ProtoReflect.Descriptor instead.
func (*PutRequest) GetBatches ¶
func (x *PutRequest) GetBatches() []*Batch
func (*PutRequest) GetContinues ¶
func (x *PutRequest) GetContinues() bool
func (*PutRequest) GetElems ¶
func (x *PutRequest) GetElems() []*Element
func (*PutRequest) GetId ¶
func (x *PutRequest) GetId() int64
func (*PutRequest) GetPeerChainID ¶
func (x *PutRequest) GetPeerChainID() []byte
func (*PutRequest) ProtoMessage ¶
func (*PutRequest) ProtoMessage()
func (*PutRequest) ProtoReflect ¶ added in v1.4.7
func (x *PutRequest) ProtoReflect() protoreflect.Message
func (*PutRequest) Reset ¶
func (x *PutRequest) Reset()
func (*PutRequest) String ¶
func (x *PutRequest) String() string
type PutResponse ¶
type PutResponse struct {
// contains filtered or unexported fields
}
func (*PutResponse) Descriptor
deprecated
func (*PutResponse) Descriptor() ([]byte, []int)
Deprecated: Use PutResponse.ProtoReflect.Descriptor instead.
func (*PutResponse) ProtoMessage ¶
func (*PutResponse) ProtoMessage()
func (*PutResponse) ProtoReflect ¶ added in v1.4.7
func (x *PutResponse) ProtoReflect() protoreflect.Message
func (*PutResponse) Reset ¶
func (x *PutResponse) Reset()
func (*PutResponse) String ¶
func (x *PutResponse) String() string
type RemoveRequest ¶
type RemoveRequest struct { PeerChainID []byte `protobuf:"bytes,1,opt,name=peerChainID,proto3" json:"peerChainID,omitempty"` Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` Batches []*Batch `protobuf:"bytes,3,rep,name=batches,proto3" json:"batches,omitempty"` Id int64 `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"` Continues bool `protobuf:"varint,5,opt,name=continues,proto3" json:"continues,omitempty"` // contains filtered or unexported fields }
func (*RemoveRequest) Descriptor
deprecated
func (*RemoveRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead.
func (*RemoveRequest) GetBatches ¶
func (x *RemoveRequest) GetBatches() []*Batch
func (*RemoveRequest) GetContinues ¶
func (x *RemoveRequest) GetContinues() bool
func (*RemoveRequest) GetId ¶
func (x *RemoveRequest) GetId() int64
func (*RemoveRequest) GetKeys ¶
func (x *RemoveRequest) GetKeys() [][]byte
func (*RemoveRequest) GetPeerChainID ¶
func (x *RemoveRequest) GetPeerChainID() []byte
func (*RemoveRequest) ProtoMessage ¶
func (*RemoveRequest) ProtoMessage()
func (*RemoveRequest) ProtoReflect ¶ added in v1.4.7
func (x *RemoveRequest) ProtoReflect() protoreflect.Message
func (*RemoveRequest) Reset ¶
func (x *RemoveRequest) Reset()
func (*RemoveRequest) String ¶
func (x *RemoveRequest) String() string
type RemoveResponse ¶
type RemoveResponse struct {
// contains filtered or unexported fields
}
func (*RemoveResponse) Descriptor
deprecated
func (*RemoveResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveResponse.ProtoReflect.Descriptor instead.
func (*RemoveResponse) ProtoMessage ¶
func (*RemoveResponse) ProtoMessage()
func (*RemoveResponse) ProtoReflect ¶ added in v1.4.7
func (x *RemoveResponse) ProtoReflect() protoreflect.Message
func (*RemoveResponse) Reset ¶
func (x *RemoveResponse) Reset()
func (*RemoveResponse) String ¶
func (x *RemoveResponse) String() string
type SharedMemoryClient ¶
type SharedMemoryClient interface {}
SharedMemoryClient is the client API for SharedMemory 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 NewSharedMemoryClient ¶
func NewSharedMemoryClient(cc grpc.ClientConnInterface) SharedMemoryClient
type SharedMemoryServer ¶
type SharedMemoryServer interface { // contains filtered or unexported methods }
SharedMemoryServer is the server API for SharedMemory service. All implementations must embed UnimplementedSharedMemoryServer for forward compatibility
type UnimplementedSharedMemoryServer ¶
type UnimplementedSharedMemoryServer struct { }
UnimplementedSharedMemoryServer must be embedded to have forward compatible implementations.
func (UnimplementedSharedMemoryServer) Get ¶
func (UnimplementedSharedMemoryServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedSharedMemoryServer) Indexed ¶
func (UnimplementedSharedMemoryServer) Indexed(context.Context, *IndexedRequest) (*IndexedResponse, error)
func (UnimplementedSharedMemoryServer) Put ¶
func (UnimplementedSharedMemoryServer) Put(context.Context, *PutRequest) (*PutResponse, error)
func (UnimplementedSharedMemoryServer) Remove ¶
func (UnimplementedSharedMemoryServer) Remove(context.Context, *RemoveRequest) (*RemoveResponse, error)
type UnsafeSharedMemoryServer ¶ added in v1.4.7
type UnsafeSharedMemoryServer interface {
// contains filtered or unexported methods
}
UnsafeSharedMemoryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SharedMemoryServer will result in compilation errors.