sharedmemory

package
v1.11.3-test-height-in... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2024 License: BSD-3-Clause Imports: 8 Imported by: 4

Documentation

Index

Constants

View Source
const (
	SharedMemory_Get_FullMethodName     = "/sharedmemory.SharedMemory/Get"
	SharedMemory_Indexed_FullMethodName = "/sharedmemory.SharedMemory/Indexed"
	SharedMemory_Apply_FullMethodName   = "/sharedmemory.SharedMemory/Apply"
)

Variables

View Source
var File_sharedmemory_sharedmemory_proto protoreflect.FileDescriptor
View Source
var SharedMemory_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sharedmemory.SharedMemory",
	HandlerType: (*SharedMemoryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _SharedMemory_Get_Handler,
		},
		{
			MethodName: "Indexed",
			Handler:    _SharedMemory_Indexed_Handler,
		},
		{
			MethodName: "Apply",
			Handler:    _SharedMemory_Apply_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sharedmemory/sharedmemory.proto",
}

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 ApplyRequest

type ApplyRequest struct {
	Requests []*AtomicRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	Batches  []*Batch         `protobuf:"bytes,2,rep,name=batches,proto3" json:"batches,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplyRequest) Descriptor deprecated

func (*ApplyRequest) Descriptor() ([]byte, []int)

Deprecated: Use ApplyRequest.ProtoReflect.Descriptor instead.

func (*ApplyRequest) GetBatches

func (x *ApplyRequest) GetBatches() []*Batch

func (*ApplyRequest) GetRequests

func (x *ApplyRequest) GetRequests() []*AtomicRequest

func (*ApplyRequest) ProtoMessage

func (*ApplyRequest) ProtoMessage()

func (*ApplyRequest) ProtoReflect

func (x *ApplyRequest) ProtoReflect() protoreflect.Message

func (*ApplyRequest) Reset

func (x *ApplyRequest) Reset()

func (*ApplyRequest) String

func (x *ApplyRequest) String() string

type ApplyResponse

type ApplyResponse struct {
	// contains filtered or unexported fields
}

func (*ApplyResponse) Descriptor deprecated

func (*ApplyResponse) Descriptor() ([]byte, []int)

Deprecated: Use ApplyResponse.ProtoReflect.Descriptor instead.

func (*ApplyResponse) ProtoMessage

func (*ApplyResponse) ProtoMessage()

func (*ApplyResponse) ProtoReflect

func (x *ApplyResponse) ProtoReflect() protoreflect.Message

func (*ApplyResponse) Reset

func (x *ApplyResponse) Reset()

func (*ApplyResponse) String

func (x *ApplyResponse) String() string

type AtomicRequest

type AtomicRequest struct {
	RemoveRequests [][]byte   `protobuf:"bytes,1,rep,name=remove_requests,json=removeRequests,proto3" json:"remove_requests,omitempty"`
	PutRequests    []*Element `protobuf:"bytes,2,rep,name=put_requests,json=putRequests,proto3" json:"put_requests,omitempty"`
	PeerChainId    []byte     `protobuf:"bytes,3,opt,name=peer_chain_id,json=peerChainId,proto3" json:"peer_chain_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AtomicRequest) Descriptor deprecated

func (*AtomicRequest) Descriptor() ([]byte, []int)

Deprecated: Use AtomicRequest.ProtoReflect.Descriptor instead.

func (*AtomicRequest) GetPeerChainId

func (x *AtomicRequest) GetPeerChainId() []byte

func (*AtomicRequest) GetPutRequests

func (x *AtomicRequest) GetPutRequests() []*Element

func (*AtomicRequest) GetRemoveRequests

func (x *AtomicRequest) GetRemoveRequests() [][]byte

func (*AtomicRequest) ProtoMessage

func (*AtomicRequest) ProtoMessage()

func (*AtomicRequest) ProtoReflect

func (x *AtomicRequest) ProtoReflect() protoreflect.Message

func (*AtomicRequest) Reset

func (x *AtomicRequest) Reset()

func (*AtomicRequest) String

func (x *AtomicRequest) String() string

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"`
	// contains filtered or unexported fields
}

func (*Batch) Descriptor deprecated

func (*Batch) Descriptor() ([]byte, []int)

Deprecated: Use Batch.ProtoReflect.Descriptor instead.

func (*Batch) GetDeletes

func (x *Batch) GetDeletes() []*BatchDelete

func (*Batch) GetPuts

func (x *Batch) GetPuts() []*BatchPut

func (*Batch) ProtoMessage

func (*Batch) ProtoMessage()

func (*Batch) ProtoReflect

func (x *Batch) ProtoReflect() protoreflect.Message

func (*Batch) Reset

func (x *Batch) Reset()

func (*Batch) String

func (x *Batch) String() string

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

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) Descriptor() ([]byte, []int)

Deprecated: Use BatchPut.ProtoReflect.Descriptor instead.

func (*BatchPut) GetKey

func (x *BatchPut) GetKey() []byte

func (*BatchPut) GetValue

func (x *BatchPut) GetValue() []byte

func (*BatchPut) ProtoMessage

func (*BatchPut) ProtoMessage()

func (*BatchPut) ProtoReflect

func (x *BatchPut) ProtoReflect() protoreflect.Message

func (*BatchPut) Reset

func (x *BatchPut) Reset()

func (*BatchPut) String

func (x *BatchPut) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Element.ProtoReflect.Descriptor instead.

func (*Element) GetKey

func (x *Element) GetKey() []byte

func (*Element) GetTraits

func (x *Element) GetTraits() [][]byte

func (*Element) GetValue

func (x *Element) GetValue() []byte

func (*Element) ProtoMessage

func (*Element) ProtoMessage()

func (*Element) ProtoReflect

func (x *Element) ProtoReflect() protoreflect.Message

func (*Element) Reset

func (x *Element) Reset()

func (*Element) String

func (x *Element) String() string

type GetRequest

type GetRequest struct {
	PeerChainId []byte   `protobuf:"bytes,1,opt,name=peer_chain_id,json=peerChainId,proto3" json:"peer_chain_id,omitempty"`
	Keys        [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated

func (*GetRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

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

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"`
	// contains filtered or unexported fields
}

func (*GetResponse) Descriptor deprecated

func (*GetResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetValues

func (x *GetResponse) GetValues() [][]byte

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 IndexedRequest

type IndexedRequest struct {
	PeerChainId []byte   `protobuf:"bytes,1,opt,name=peer_chain_id,json=peerChainId,proto3" json:"peer_chain_id,omitempty"`
	Traits      [][]byte `protobuf:"bytes,2,rep,name=traits,proto3" json:"traits,omitempty"`
	StartTrait  []byte   `protobuf:"bytes,3,opt,name=start_trait,json=startTrait,proto3" json:"start_trait,omitempty"`
	StartKey    []byte   `protobuf:"bytes,4,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"`
	Limit       int32    `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*IndexedRequest) Descriptor deprecated

func (*IndexedRequest) Descriptor() ([]byte, []int)

Deprecated: Use IndexedRequest.ProtoReflect.Descriptor instead.

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

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=last_trait,json=lastTrait,proto3" json:"last_trait,omitempty"`
	LastKey   []byte   `protobuf:"bytes,3,opt,name=last_key,json=lastKey,proto3" json:"last_key,omitempty"`
	// contains filtered or unexported fields
}

func (*IndexedResponse) Descriptor deprecated

func (*IndexedResponse) Descriptor() ([]byte, []int)

Deprecated: Use IndexedResponse.ProtoReflect.Descriptor instead.

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

func (x *IndexedResponse) ProtoReflect() protoreflect.Message

func (*IndexedResponse) Reset

func (x *IndexedResponse) Reset()

func (*IndexedResponse) String

func (x *IndexedResponse) String() string

type SharedMemoryClient

type SharedMemoryClient interface {
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	Indexed(ctx context.Context, in *IndexedRequest, opts ...grpc.CallOption) (*IndexedResponse, error)
	Apply(ctx context.Context, in *ApplyRequest, opts ...grpc.CallOption) (*ApplyResponse, error)
}

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.

type SharedMemoryServer

type SharedMemoryServer interface {
	Get(context.Context, *GetRequest) (*GetResponse, error)
	Indexed(context.Context, *IndexedRequest) (*IndexedResponse, error)
	Apply(context.Context, *ApplyRequest) (*ApplyResponse, error)
	// 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) Apply

func (UnimplementedSharedMemoryServer) Get

func (UnimplementedSharedMemoryServer) Indexed

type UnsafeSharedMemoryServer

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL