Documentation ¶
Index ¶
- func RegisterDStashServer(s *grpc.Server, srv DStashServer)
- type DStashClient
- type DStashServer
- type DStash_BatchIndexClient
- type DStash_BatchIndexServer
- type DStash_BatchLookupClient
- type DStash_BatchLookupServer
- type DStash_BatchPutClient
- type DStash_BatchPutServer
- type DStash_ItemsClient
- type DStash_ItemsServer
- type DStash_SearchClient
- type DStash_SearchServer
- type KVPair
- func (*KVPair) Descriptor() ([]byte, []int)
- func (m *KVPair) GetKey() []byte
- func (m *KVPair) GetValue() []byte
- func (*KVPair) ProtoMessage()
- func (m *KVPair) Reset()
- func (m *KVPair) String() string
- func (m *KVPair) XXX_DiscardUnknown()
- func (m *KVPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KVPair) XXX_Merge(src proto.Message)
- func (m *KVPair) XXX_Size() int
- func (m *KVPair) XXX_Unmarshal(b []byte) error
- type StatusMessage
- func (*StatusMessage) Descriptor() ([]byte, []int)
- func (m *StatusMessage) GetStatus() string
- func (*StatusMessage) ProtoMessage()
- func (m *StatusMessage) Reset()
- func (m *StatusMessage) String() string
- func (m *StatusMessage) XXX_DiscardUnknown()
- func (m *StatusMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StatusMessage) XXX_Merge(src proto.Message)
- func (m *StatusMessage) XXX_Size() int
- func (m *StatusMessage) XXX_Unmarshal(b []byte) error
- type Success
- func (*Success) Descriptor() ([]byte, []int)
- func (m *Success) GetOk() bool
- func (*Success) ProtoMessage()
- func (m *Success) Reset()
- func (m *Success) String() string
- func (m *Success) XXX_DiscardUnknown()
- func (m *Success) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Success) XXX_Merge(src proto.Message)
- func (m *Success) XXX_Size() int
- func (m *Success) XXX_Unmarshal(b []byte) error
- type UnimplementedDStashServer
- func (*UnimplementedDStashServer) BatchIndex(srv DStash_BatchIndexServer) error
- func (*UnimplementedDStashServer) BatchLookup(srv DStash_BatchLookupServer) error
- func (*UnimplementedDStashServer) BatchPut(srv DStash_BatchPutServer) error
- func (*UnimplementedDStashServer) Items(req *empty.Empty, srv DStash_ItemsServer) error
- func (*UnimplementedDStashServer) Lookup(ctx context.Context, req *KVPair) (*KVPair, error)
- func (*UnimplementedDStashServer) Put(ctx context.Context, req *KVPair) (*empty.Empty, error)
- func (*UnimplementedDStashServer) Search(req *wrappers.StringValue, srv DStash_SearchServer) error
- func (*UnimplementedDStashServer) Status(ctx context.Context, req *empty.Empty) (*StatusMessage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDStashServer ¶
func RegisterDStashServer(s *grpc.Server, srv DStashServer)
Types ¶
type DStashClient ¶
type DStashClient interface { Put(ctx context.Context, in *KVPair, opts ...grpc.CallOption) (*empty.Empty, error) BatchPut(ctx context.Context, opts ...grpc.CallOption) (DStash_BatchPutClient, error) Lookup(ctx context.Context, in *KVPair, opts ...grpc.CallOption) (*KVPair, error) BatchLookup(ctx context.Context, opts ...grpc.CallOption) (DStash_BatchLookupClient, error) Items(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (DStash_ItemsClient, error) Status(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*StatusMessage, error) BatchIndex(ctx context.Context, opts ...grpc.CallOption) (DStash_BatchIndexClient, error) Search(ctx context.Context, in *wrappers.StringValue, opts ...grpc.CallOption) (DStash_SearchClient, error) }
DStashClient is the client API for DStash service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDStashClient ¶
func NewDStashClient(cc *grpc.ClientConn) DStashClient
type DStashServer ¶
type DStashServer interface { Put(context.Context, *KVPair) (*empty.Empty, error) BatchPut(DStash_BatchPutServer) error Lookup(context.Context, *KVPair) (*KVPair, error) BatchLookup(DStash_BatchLookupServer) error Items(*empty.Empty, DStash_ItemsServer) error Status(context.Context, *empty.Empty) (*StatusMessage, error) BatchIndex(DStash_BatchIndexServer) error Search(*wrappers.StringValue, DStash_SearchServer) error }
DStashServer is the server API for DStash service.
type DStash_BatchIndexClient ¶
type DStash_BatchIndexClient interface { Send(*wrappers.StringValue) error CloseAndRecv() (*empty.Empty, error) grpc.ClientStream }
type DStash_BatchIndexServer ¶
type DStash_BatchIndexServer interface { SendAndClose(*empty.Empty) error Recv() (*wrappers.StringValue, error) grpc.ServerStream }
type DStash_BatchPutClient ¶
type DStash_BatchPutServer ¶
type DStash_ItemsClient ¶
type DStash_ItemsClient interface { Recv() (*KVPair, error) grpc.ClientStream }
type DStash_ItemsServer ¶
type DStash_ItemsServer interface { Send(*KVPair) error grpc.ServerStream }
type DStash_SearchClient ¶
type DStash_SearchClient interface { Recv() (*wrappers.UInt64Value, error) grpc.ClientStream }
type DStash_SearchServer ¶
type DStash_SearchServer interface { Send(*wrappers.UInt64Value) error grpc.ServerStream }
type KVPair ¶
type KVPair 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KVPair) Descriptor ¶
func (*KVPair) ProtoMessage ¶
func (*KVPair) ProtoMessage()
func (*KVPair) XXX_DiscardUnknown ¶
func (m *KVPair) XXX_DiscardUnknown()
func (*KVPair) XXX_Marshal ¶
func (*KVPair) XXX_Unmarshal ¶
type StatusMessage ¶
type StatusMessage struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StatusMessage) Descriptor ¶
func (*StatusMessage) Descriptor() ([]byte, []int)
func (*StatusMessage) GetStatus ¶
func (m *StatusMessage) GetStatus() string
func (*StatusMessage) ProtoMessage ¶
func (*StatusMessage) ProtoMessage()
func (*StatusMessage) Reset ¶
func (m *StatusMessage) Reset()
func (*StatusMessage) String ¶
func (m *StatusMessage) String() string
func (*StatusMessage) XXX_DiscardUnknown ¶
func (m *StatusMessage) XXX_DiscardUnknown()
func (*StatusMessage) XXX_Marshal ¶
func (m *StatusMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StatusMessage) XXX_Merge ¶
func (m *StatusMessage) XXX_Merge(src proto.Message)
func (*StatusMessage) XXX_Size ¶
func (m *StatusMessage) XXX_Size() int
func (*StatusMessage) XXX_Unmarshal ¶
func (m *StatusMessage) XXX_Unmarshal(b []byte) error
type Success ¶
type Success struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Success) Descriptor ¶
func (*Success) ProtoMessage ¶
func (*Success) ProtoMessage()
func (*Success) XXX_DiscardUnknown ¶
func (m *Success) XXX_DiscardUnknown()
func (*Success) XXX_Marshal ¶
func (*Success) XXX_Unmarshal ¶
type UnimplementedDStashServer ¶
type UnimplementedDStashServer struct { }
UnimplementedDStashServer can be embedded to have forward compatible implementations.
func (*UnimplementedDStashServer) BatchIndex ¶
func (*UnimplementedDStashServer) BatchIndex(srv DStash_BatchIndexServer) error
func (*UnimplementedDStashServer) BatchLookup ¶
func (*UnimplementedDStashServer) BatchLookup(srv DStash_BatchLookupServer) error
func (*UnimplementedDStashServer) BatchPut ¶
func (*UnimplementedDStashServer) BatchPut(srv DStash_BatchPutServer) error
func (*UnimplementedDStashServer) Items ¶
func (*UnimplementedDStashServer) Items(req *empty.Empty, srv DStash_ItemsServer) error
func (*UnimplementedDStashServer) Search ¶
func (*UnimplementedDStashServer) Search(req *wrappers.StringValue, srv DStash_SearchServer) error
func (*UnimplementedDStashServer) Status ¶
func (*UnimplementedDStashServer) Status(ctx context.Context, req *empty.Empty) (*StatusMessage, error)
Click to show internal directories.
Click to hide internal directories.