Documentation
¶
Overview ¶
Package valueproto is a generated protocol buffer package.
It is generated from these files:
value_api.proto
It has these top-level messages:
EmptyMsg WriteRequest LookupRequest ReadRequest DeleteRequest WriteResponse LookupResponse ReadResponse DeleteResponse
Index ¶
- Variables
- func RegisterValueStoreServer(s *grpc.Server, srv ValueStoreServer)
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)
- func (m *DeleteRequest) Marshal() (data []byte, err error)
- func (m *DeleteRequest) MarshalTo(data []byte) (int, error)
- func (*DeleteRequest) ProtoMessage()
- func (m *DeleteRequest) Reset()
- func (m *DeleteRequest) Size() (n int)
- func (m *DeleteRequest) String() string
- func (m *DeleteRequest) Unmarshal(data []byte) error
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)
- func (m *DeleteResponse) Marshal() (data []byte, err error)
- func (m *DeleteResponse) MarshalTo(data []byte) (int, error)
- func (*DeleteResponse) ProtoMessage()
- func (m *DeleteResponse) Reset()
- func (m *DeleteResponse) Size() (n int)
- func (m *DeleteResponse) String() string
- func (m *DeleteResponse) Unmarshal(data []byte) error
- type EmptyMsg
- func (*EmptyMsg) Descriptor() ([]byte, []int)
- func (m *EmptyMsg) Marshal() (data []byte, err error)
- func (m *EmptyMsg) MarshalTo(data []byte) (int, error)
- func (*EmptyMsg) ProtoMessage()
- func (m *EmptyMsg) Reset()
- func (m *EmptyMsg) Size() (n int)
- func (m *EmptyMsg) String() string
- func (m *EmptyMsg) Unmarshal(data []byte) error
- type LookupRequest
- func (*LookupRequest) Descriptor() ([]byte, []int)
- func (m *LookupRequest) Marshal() (data []byte, err error)
- func (m *LookupRequest) MarshalTo(data []byte) (int, error)
- func (*LookupRequest) ProtoMessage()
- func (m *LookupRequest) Reset()
- func (m *LookupRequest) Size() (n int)
- func (m *LookupRequest) String() string
- func (m *LookupRequest) Unmarshal(data []byte) error
- type LookupResponse
- func (*LookupResponse) Descriptor() ([]byte, []int)
- func (m *LookupResponse) Marshal() (data []byte, err error)
- func (m *LookupResponse) MarshalTo(data []byte) (int, error)
- func (*LookupResponse) ProtoMessage()
- func (m *LookupResponse) Reset()
- func (m *LookupResponse) Size() (n int)
- func (m *LookupResponse) String() string
- func (m *LookupResponse) Unmarshal(data []byte) error
- type ReadRequest
- func (*ReadRequest) Descriptor() ([]byte, []int)
- func (m *ReadRequest) Marshal() (data []byte, err error)
- func (m *ReadRequest) MarshalTo(data []byte) (int, error)
- func (*ReadRequest) ProtoMessage()
- func (m *ReadRequest) Reset()
- func (m *ReadRequest) Size() (n int)
- func (m *ReadRequest) String() string
- func (m *ReadRequest) Unmarshal(data []byte) error
- type ReadResponse
- func (*ReadResponse) Descriptor() ([]byte, []int)
- func (m *ReadResponse) Marshal() (data []byte, err error)
- func (m *ReadResponse) MarshalTo(data []byte) (int, error)
- func (*ReadResponse) ProtoMessage()
- func (m *ReadResponse) Reset()
- func (m *ReadResponse) Size() (n int)
- func (m *ReadResponse) String() string
- func (m *ReadResponse) Unmarshal(data []byte) error
- type ValueStoreClient
- type ValueStoreServer
- type ValueStore_StreamDeleteClient
- type ValueStore_StreamDeleteServer
- type ValueStore_StreamLookupClient
- type ValueStore_StreamLookupServer
- type ValueStore_StreamReadClient
- type ValueStore_StreamReadServer
- type ValueStore_StreamWriteClient
- type ValueStore_StreamWriteServer
- type WriteRequest
- func (*WriteRequest) Descriptor() ([]byte, []int)
- func (m *WriteRequest) Marshal() (data []byte, err error)
- func (m *WriteRequest) MarshalTo(data []byte) (int, error)
- func (*WriteRequest) ProtoMessage()
- func (m *WriteRequest) Reset()
- func (m *WriteRequest) Size() (n int)
- func (m *WriteRequest) String() string
- func (m *WriteRequest) Unmarshal(data []byte) error
- type WriteResponse
- func (*WriteResponse) Descriptor() ([]byte, []int)
- func (m *WriteResponse) Marshal() (data []byte, err error)
- func (m *WriteResponse) MarshalTo(data []byte) (int, error)
- func (*WriteResponse) ProtoMessage()
- func (m *WriteResponse) Reset()
- func (m *WriteResponse) Size() (n int)
- func (m *WriteResponse) String() string
- func (m *WriteResponse) Unmarshal(data []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthValueApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowValueApi = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterValueStoreServer ¶
func RegisterValueStoreServer(s *grpc.Server, srv ValueStoreServer)
Types ¶
type DeleteRequest ¶
type DeleteRequest struct { Rpcid uint32 `protobuf:"varint,1,opt,name=rpcid,proto3" json:"rpcid,omitempty"` KeyA uint64 `protobuf:"varint,2,opt,name=keyA,proto3" json:"keyA,omitempty"` KeyB uint64 `protobuf:"varint,3,opt,name=keyB,proto3" json:"keyB,omitempty"` TimestampMicro int64 `protobuf:"varint,4,opt,name=timestampMicro,proto3" json:"timestampMicro,omitempty"` }
func (*DeleteRequest) Descriptor ¶
func (*DeleteRequest) Descriptor() ([]byte, []int)
func (*DeleteRequest) Marshal ¶
func (m *DeleteRequest) Marshal() (data []byte, err error)
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) Reset ¶
func (m *DeleteRequest) Reset()
func (*DeleteRequest) Size ¶
func (m *DeleteRequest) Size() (n int)
func (*DeleteRequest) String ¶
func (m *DeleteRequest) String() string
func (*DeleteRequest) Unmarshal ¶
func (m *DeleteRequest) Unmarshal(data []byte) error
type DeleteResponse ¶
type DeleteResponse struct { Rpcid uint32 `protobuf:"varint,1,opt,name=rpcid,proto3" json:"rpcid,omitempty"` TimestampMicro int64 `protobuf:"varint,2,opt,name=timestampMicro,proto3" json:"timestampMicro,omitempty"` Err string `protobuf:"bytes,3,opt,name=err,proto3" json:"err,omitempty"` }
func (*DeleteResponse) Descriptor ¶
func (*DeleteResponse) Descriptor() ([]byte, []int)
func (*DeleteResponse) Marshal ¶
func (m *DeleteResponse) Marshal() (data []byte, err error)
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) Reset ¶
func (m *DeleteResponse) Reset()
func (*DeleteResponse) Size ¶
func (m *DeleteResponse) Size() (n int)
func (*DeleteResponse) String ¶
func (m *DeleteResponse) String() string
func (*DeleteResponse) Unmarshal ¶
func (m *DeleteResponse) Unmarshal(data []byte) error
type EmptyMsg ¶
type EmptyMsg struct { }
func (*EmptyMsg) Descriptor ¶
func (*EmptyMsg) ProtoMessage ¶
func (*EmptyMsg) ProtoMessage()
type LookupRequest ¶
type LookupRequest struct { Rpcid uint32 `protobuf:"varint,1,opt,name=rpcid,proto3" json:"rpcid,omitempty"` KeyA uint64 `protobuf:"varint,2,opt,name=keyA,proto3" json:"keyA,omitempty"` KeyB uint64 `protobuf:"varint,3,opt,name=keyB,proto3" json:"keyB,omitempty"` }
func (*LookupRequest) Descriptor ¶
func (*LookupRequest) Descriptor() ([]byte, []int)
func (*LookupRequest) Marshal ¶
func (m *LookupRequest) Marshal() (data []byte, err error)
func (*LookupRequest) ProtoMessage ¶
func (*LookupRequest) ProtoMessage()
func (*LookupRequest) Reset ¶
func (m *LookupRequest) Reset()
func (*LookupRequest) Size ¶
func (m *LookupRequest) Size() (n int)
func (*LookupRequest) String ¶
func (m *LookupRequest) String() string
func (*LookupRequest) Unmarshal ¶
func (m *LookupRequest) Unmarshal(data []byte) error
type LookupResponse ¶
type LookupResponse struct { Rpcid uint32 `protobuf:"varint,1,opt,name=rpcid,proto3" json:"rpcid,omitempty"` TimestampMicro int64 `protobuf:"varint,2,opt,name=timestampMicro,proto3" json:"timestampMicro,omitempty"` Length uint32 `protobuf:"varint,3,opt,name=length,proto3" json:"length,omitempty"` Err string `protobuf:"bytes,4,opt,name=err,proto3" json:"err,omitempty"` }
func (*LookupResponse) Descriptor ¶
func (*LookupResponse) Descriptor() ([]byte, []int)
func (*LookupResponse) Marshal ¶
func (m *LookupResponse) Marshal() (data []byte, err error)
func (*LookupResponse) ProtoMessage ¶
func (*LookupResponse) ProtoMessage()
func (*LookupResponse) Reset ¶
func (m *LookupResponse) Reset()
func (*LookupResponse) Size ¶
func (m *LookupResponse) Size() (n int)
func (*LookupResponse) String ¶
func (m *LookupResponse) String() string
func (*LookupResponse) Unmarshal ¶
func (m *LookupResponse) Unmarshal(data []byte) error
type ReadRequest ¶
type ReadRequest struct { Rpcid uint32 `protobuf:"varint,1,opt,name=rpcid,proto3" json:"rpcid,omitempty"` KeyA uint64 `protobuf:"varint,2,opt,name=keyA,proto3" json:"keyA,omitempty"` KeyB uint64 `protobuf:"varint,3,opt,name=keyB,proto3" json:"keyB,omitempty"` }
func (*ReadRequest) Descriptor ¶
func (*ReadRequest) Descriptor() ([]byte, []int)
func (*ReadRequest) Marshal ¶
func (m *ReadRequest) Marshal() (data []byte, err error)
func (*ReadRequest) ProtoMessage ¶
func (*ReadRequest) ProtoMessage()
func (*ReadRequest) Reset ¶
func (m *ReadRequest) Reset()
func (*ReadRequest) Size ¶
func (m *ReadRequest) Size() (n int)
func (*ReadRequest) String ¶
func (m *ReadRequest) String() string
func (*ReadRequest) Unmarshal ¶
func (m *ReadRequest) Unmarshal(data []byte) error
type ReadResponse ¶
type ReadResponse struct { Rpcid uint32 `protobuf:"varint,1,opt,name=rpcid,proto3" json:"rpcid,omitempty"` TimestampMicro int64 `protobuf:"varint,2,opt,name=timestampMicro,proto3" json:"timestampMicro,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` Err string `protobuf:"bytes,4,opt,name=err,proto3" json:"err,omitempty"` }
func (*ReadResponse) Descriptor ¶
func (*ReadResponse) Descriptor() ([]byte, []int)
func (*ReadResponse) Marshal ¶
func (m *ReadResponse) Marshal() (data []byte, err error)
func (*ReadResponse) ProtoMessage ¶
func (*ReadResponse) ProtoMessage()
func (*ReadResponse) Reset ¶
func (m *ReadResponse) Reset()
func (*ReadResponse) Size ¶
func (m *ReadResponse) Size() (n int)
func (*ReadResponse) String ¶
func (m *ReadResponse) String() string
func (*ReadResponse) Unmarshal ¶
func (m *ReadResponse) Unmarshal(data []byte) error
type ValueStoreClient ¶
type ValueStoreClient interface { Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) StreamWrite(ctx context.Context, opts ...grpc.CallOption) (ValueStore_StreamWriteClient, error) Lookup(ctx context.Context, in *LookupRequest, opts ...grpc.CallOption) (*LookupResponse, error) StreamLookup(ctx context.Context, opts ...grpc.CallOption) (ValueStore_StreamLookupClient, error) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) StreamRead(ctx context.Context, opts ...grpc.CallOption) (ValueStore_StreamReadClient, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) StreamDelete(ctx context.Context, opts ...grpc.CallOption) (ValueStore_StreamDeleteClient, error) }
func NewValueStoreClient ¶
func NewValueStoreClient(cc *grpc.ClientConn) ValueStoreClient
type ValueStoreServer ¶
type ValueStoreServer interface { Write(context.Context, *WriteRequest) (*WriteResponse, error) StreamWrite(ValueStore_StreamWriteServer) error Lookup(context.Context, *LookupRequest) (*LookupResponse, error) StreamLookup(ValueStore_StreamLookupServer) error Read(context.Context, *ReadRequest) (*ReadResponse, error) StreamRead(ValueStore_StreamReadServer) error Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) StreamDelete(ValueStore_StreamDeleteServer) error }
type ValueStore_StreamDeleteClient ¶
type ValueStore_StreamDeleteClient interface { Send(*DeleteRequest) error Recv() (*DeleteResponse, error) grpc.ClientStream }
type ValueStore_StreamDeleteServer ¶
type ValueStore_StreamDeleteServer interface { Send(*DeleteResponse) error Recv() (*DeleteRequest, error) grpc.ServerStream }
type ValueStore_StreamLookupClient ¶
type ValueStore_StreamLookupClient interface { Send(*LookupRequest) error Recv() (*LookupResponse, error) grpc.ClientStream }
type ValueStore_StreamLookupServer ¶
type ValueStore_StreamLookupServer interface { Send(*LookupResponse) error Recv() (*LookupRequest, error) grpc.ServerStream }
type ValueStore_StreamReadClient ¶
type ValueStore_StreamReadClient interface { Send(*ReadRequest) error Recv() (*ReadResponse, error) grpc.ClientStream }
type ValueStore_StreamReadServer ¶
type ValueStore_StreamReadServer interface { Send(*ReadResponse) error Recv() (*ReadRequest, error) grpc.ServerStream }
type ValueStore_StreamWriteClient ¶
type ValueStore_StreamWriteClient interface { Send(*WriteRequest) error Recv() (*WriteResponse, error) grpc.ClientStream }
type ValueStore_StreamWriteServer ¶
type ValueStore_StreamWriteServer interface { Send(*WriteResponse) error Recv() (*WriteRequest, error) grpc.ServerStream }
type WriteRequest ¶
type WriteRequest struct { Rpcid uint32 `protobuf:"varint,1,opt,name=rpcid,proto3" json:"rpcid,omitempty"` KeyA uint64 `protobuf:"varint,2,opt,name=keyA,proto3" json:"keyA,omitempty"` KeyB uint64 `protobuf:"varint,3,opt,name=keyB,proto3" json:"keyB,omitempty"` Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` TimestampMicro int64 `protobuf:"varint,5,opt,name=timestampMicro,proto3" json:"timestampMicro,omitempty"` }
func (*WriteRequest) Descriptor ¶
func (*WriteRequest) Descriptor() ([]byte, []int)
func (*WriteRequest) Marshal ¶
func (m *WriteRequest) Marshal() (data []byte, err error)
func (*WriteRequest) ProtoMessage ¶
func (*WriteRequest) ProtoMessage()
func (*WriteRequest) Reset ¶
func (m *WriteRequest) Reset()
func (*WriteRequest) Size ¶
func (m *WriteRequest) Size() (n int)
func (*WriteRequest) String ¶
func (m *WriteRequest) String() string
func (*WriteRequest) Unmarshal ¶
func (m *WriteRequest) Unmarshal(data []byte) error
type WriteResponse ¶
type WriteResponse struct { Rpcid uint32 `protobuf:"varint,1,opt,name=rpcid,proto3" json:"rpcid,omitempty"` TimestampMicro int64 `protobuf:"varint,2,opt,name=timestampMicro,proto3" json:"timestampMicro,omitempty"` Err string `protobuf:"bytes,3,opt,name=err,proto3" json:"err,omitempty"` }
func (*WriteResponse) Descriptor ¶
func (*WriteResponse) Descriptor() ([]byte, []int)
func (*WriteResponse) Marshal ¶
func (m *WriteResponse) Marshal() (data []byte, err error)
func (*WriteResponse) ProtoMessage ¶
func (*WriteResponse) ProtoMessage()
func (*WriteResponse) Reset ¶
func (m *WriteResponse) Reset()
func (*WriteResponse) Size ¶
func (m *WriteResponse) Size() (n int)
func (*WriteResponse) String ¶
func (m *WriteResponse) String() string
func (*WriteResponse) Unmarshal ¶
func (m *WriteResponse) Unmarshal(data []byte) error
Click to show internal directories.
Click to hide internal directories.