Documentation ¶
Index ¶
- func RegisterLruGRpcServer(s *grpc.Server, srv LruGRpcServer)
- type Key
- func (*Key) Descriptor() ([]byte, []int)
- func (m *Key) GetData() string
- func (*Key) ProtoMessage()
- func (m *Key) Reset()
- func (m *Key) String() string
- func (m *Key) XXX_DiscardUnknown()
- func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Key) XXX_Merge(src proto.Message)
- func (m *Key) XXX_Size() int
- func (m *Key) XXX_Unmarshal(b []byte) error
- type Keys
- func (*Keys) Descriptor() ([]byte, []int)
- func (m *Keys) GetData() []string
- func (*Keys) ProtoMessage()
- func (m *Keys) Reset()
- func (m *Keys) String() string
- func (m *Keys) XXX_DiscardUnknown()
- func (m *Keys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Keys) XXX_Merge(src proto.Message)
- func (m *Keys) XXX_Size() int
- func (m *Keys) XXX_Unmarshal(b []byte) error
- type LruGRpcClient
- type LruGRpcServer
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetSuccess() bool
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLruGRpcServer ¶
func RegisterLruGRpcServer(s *grpc.Server, srv LruGRpcServer)
Types ¶
type Key ¶
type Key struct { Data string `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The request message containing the user's name.
func (*Key) Descriptor ¶
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
func (*Key) XXX_DiscardUnknown ¶
func (m *Key) XXX_DiscardUnknown()
func (*Key) XXX_Unmarshal ¶
type Keys ¶
type Keys struct { Data []string `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Keys) Descriptor ¶
func (*Keys) ProtoMessage ¶
func (*Keys) ProtoMessage()
func (*Keys) XXX_DiscardUnknown ¶
func (m *Keys) XXX_DiscardUnknown()
func (*Keys) XXX_Unmarshal ¶
type LruGRpcClient ¶
type LruGRpcClient interface { // Sends a greeting Remove(ctx context.Context, in *Key, opts ...grpc.CallOption) (*Response, error) RemoveBatch(ctx context.Context, in *Keys, opts ...grpc.CallOption) (*Response, error) }
LruGRpcClient is the client API for LruGRpc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLruGRpcClient ¶
func NewLruGRpcClient(cc *grpc.ClientConn) LruGRpcClient
type LruGRpcServer ¶
type LruGRpcServer interface { // Sends a greeting Remove(context.Context, *Key) (*Response, error) RemoveBatch(context.Context, *Keys) (*Response, error) }
LruGRpcServer is the server API for LruGRpc service.
type Response ¶
type Response struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The response message containing the greetings
func (*Response) Descriptor ¶
func (*Response) GetSuccess ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.