Documentation
¶
Index ¶
- func RegisterCacheServer(s *grpc.Server, srv CacheServer)
- type CacheClient
- type CacheServer
- type FlushResponse
- func (*FlushResponse) Descriptor() ([]byte, []int)
- func (m *FlushResponse) GetOk() bool
- func (*FlushResponse) ProtoMessage()
- func (m *FlushResponse) Reset()
- func (m *FlushResponse) String() string
- func (m *FlushResponse) XXX_DiscardUnknown()
- func (m *FlushResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FlushResponse) XXX_Merge(src proto.Message)
- func (m *FlushResponse) XXX_Size() int
- func (m *FlushResponse) XXX_Unmarshal(b []byte) error
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetKey() string
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) String() string
- func (m *GetRequest) XXX_DiscardUnknown()
- func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRequest) XXX_Merge(src proto.Message)
- func (m *GetRequest) XXX_Size() int
- func (m *GetRequest) XXX_Unmarshal(b []byte) error
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)
- func (m *GetResponse) GetValue() []byte
- func (*GetResponse) ProtoMessage()
- func (m *GetResponse) Reset()
- func (m *GetResponse) String() string
- func (m *GetResponse) XXX_DiscardUnknown()
- func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetResponse) XXX_Merge(src proto.Message)
- func (m *GetResponse) XXX_Size() int
- func (m *GetResponse) XXX_Unmarshal(b []byte) error
- type SetRequest
- func (*SetRequest) Descriptor() ([]byte, []int)
- func (m *SetRequest) GetKey() string
- func (m *SetRequest) GetValue() []byte
- func (*SetRequest) ProtoMessage()
- func (m *SetRequest) Reset()
- func (m *SetRequest) String() string
- func (m *SetRequest) XXX_DiscardUnknown()
- func (m *SetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetRequest) XXX_Merge(src proto.Message)
- func (m *SetRequest) XXX_Size() int
- func (m *SetRequest) XXX_Unmarshal(b []byte) error
- type SetResponse
- func (*SetResponse) Descriptor() ([]byte, []int)
- func (m *SetResponse) GetOk() bool
- func (*SetResponse) ProtoMessage()
- func (m *SetResponse) Reset()
- func (m *SetResponse) String() string
- func (m *SetResponse) XXX_DiscardUnknown()
- func (m *SetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetResponse) XXX_Merge(src proto.Message)
- func (m *SetResponse) XXX_Size() int
- func (m *SetResponse) XXX_Unmarshal(b []byte) error
- type UnsetRequest
- func (*UnsetRequest) Descriptor() ([]byte, []int)
- func (m *UnsetRequest) GetKey() string
- func (*UnsetRequest) ProtoMessage()
- func (m *UnsetRequest) Reset()
- func (m *UnsetRequest) String() string
- func (m *UnsetRequest) XXX_DiscardUnknown()
- func (m *UnsetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnsetRequest) XXX_Merge(src proto.Message)
- func (m *UnsetRequest) XXX_Size() int
- func (m *UnsetRequest) XXX_Unmarshal(b []byte) error
- type UnsetResponse
- func (*UnsetResponse) Descriptor() ([]byte, []int)
- func (m *UnsetResponse) GetOk() bool
- func (*UnsetResponse) ProtoMessage()
- func (m *UnsetResponse) Reset()
- func (m *UnsetResponse) String() string
- func (m *UnsetResponse) XXX_DiscardUnknown()
- func (m *UnsetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnsetResponse) XXX_Merge(src proto.Message)
- func (m *UnsetResponse) XXX_Size() int
- func (m *UnsetResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCacheServer ¶
func RegisterCacheServer(s *grpc.Server, srv CacheServer)
Types ¶
type CacheClient ¶
type CacheClient interface {
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error)
Unset(ctx context.Context, in *UnsetRequest, opts ...grpc.CallOption) (*UnsetResponse, error)
Flush(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*FlushResponse, error)
}
CacheClient is the client API for Cache service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCacheClient ¶
func NewCacheClient(cc *grpc.ClientConn) CacheClient
type CacheServer ¶
type CacheServer interface {
Get(context.Context, *GetRequest) (*GetResponse, error)
Set(context.Context, *SetRequest) (*SetResponse, error)
Unset(context.Context, *UnsetRequest) (*UnsetResponse, error)
Flush(context.Context, *empty.Empty) (*FlushResponse, error)
}
CacheServer is the server API for Cache service.
type FlushResponse ¶
type FlushResponse 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 (*FlushResponse) Descriptor ¶
func (*FlushResponse) Descriptor() ([]byte, []int)
func (*FlushResponse) GetOk ¶
func (m *FlushResponse) GetOk() bool
func (*FlushResponse) ProtoMessage ¶
func (*FlushResponse) ProtoMessage()
func (*FlushResponse) Reset ¶
func (m *FlushResponse) Reset()
func (*FlushResponse) String ¶
func (m *FlushResponse) String() string
func (*FlushResponse) XXX_DiscardUnknown ¶
func (m *FlushResponse) XXX_DiscardUnknown()
func (*FlushResponse) XXX_Marshal ¶
func (m *FlushResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FlushResponse) XXX_Merge ¶
func (m *FlushResponse) XXX_Merge(src proto.Message)
func (*FlushResponse) XXX_Size ¶
func (m *FlushResponse) XXX_Size() int
func (*FlushResponse) XXX_Unmarshal ¶
func (m *FlushResponse) XXX_Unmarshal(b []byte) error
type GetRequest ¶
type GetRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
Request to the get function of the Cache service.
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetKey ¶
func (m *GetRequest) GetKey() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) String ¶
func (m *GetRequest) String() string
func (*GetRequest) XXX_DiscardUnknown ¶
func (m *GetRequest) XXX_DiscardUnknown()
func (*GetRequest) XXX_Marshal ¶
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRequest) XXX_Merge ¶
func (m *GetRequest) XXX_Merge(src proto.Message)
func (*GetRequest) XXX_Size ¶
func (m *GetRequest) XXX_Size() int
func (*GetRequest) XXX_Unmarshal ¶
func (m *GetRequest) XXX_Unmarshal(b []byte) error
type GetResponse ¶
type GetResponse struct {
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 (*GetResponse) Descriptor ¶
func (*GetResponse) Descriptor() ([]byte, []int)
func (*GetResponse) GetValue ¶
func (m *GetResponse) GetValue() []byte
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) Reset ¶
func (m *GetResponse) Reset()
func (*GetResponse) String ¶
func (m *GetResponse) String() string
func (*GetResponse) XXX_DiscardUnknown ¶
func (m *GetResponse) XXX_DiscardUnknown()
func (*GetResponse) XXX_Marshal ¶
func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetResponse) XXX_Merge ¶
func (m *GetResponse) XXX_Merge(src proto.Message)
func (*GetResponse) XXX_Size ¶
func (m *GetResponse) XXX_Size() int
func (*GetResponse) XXX_Unmarshal ¶
func (m *GetResponse) XXX_Unmarshal(b []byte) error
type SetRequest ¶
type SetRequest struct {
Key string `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 (*SetRequest) Descriptor ¶
func (*SetRequest) Descriptor() ([]byte, []int)
func (*SetRequest) GetKey ¶
func (m *SetRequest) GetKey() string
func (*SetRequest) GetValue ¶
func (m *SetRequest) GetValue() []byte
func (*SetRequest) ProtoMessage ¶
func (*SetRequest) ProtoMessage()
func (*SetRequest) Reset ¶
func (m *SetRequest) Reset()
func (*SetRequest) String ¶
func (m *SetRequest) String() string
func (*SetRequest) XXX_DiscardUnknown ¶
func (m *SetRequest) XXX_DiscardUnknown()
func (*SetRequest) XXX_Marshal ¶
func (m *SetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetRequest) XXX_Merge ¶
func (m *SetRequest) XXX_Merge(src proto.Message)
func (*SetRequest) XXX_Size ¶
func (m *SetRequest) XXX_Size() int
func (*SetRequest) XXX_Unmarshal ¶
func (m *SetRequest) XXX_Unmarshal(b []byte) error
type SetResponse ¶
type SetResponse 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 (*SetResponse) Descriptor ¶
func (*SetResponse) Descriptor() ([]byte, []int)
func (*SetResponse) GetOk ¶
func (m *SetResponse) GetOk() bool
func (*SetResponse) ProtoMessage ¶
func (*SetResponse) ProtoMessage()
func (*SetResponse) Reset ¶
func (m *SetResponse) Reset()
func (*SetResponse) String ¶
func (m *SetResponse) String() string
func (*SetResponse) XXX_DiscardUnknown ¶
func (m *SetResponse) XXX_DiscardUnknown()
func (*SetResponse) XXX_Marshal ¶
func (m *SetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetResponse) XXX_Merge ¶
func (m *SetResponse) XXX_Merge(src proto.Message)
func (*SetResponse) XXX_Size ¶
func (m *SetResponse) XXX_Size() int
func (*SetResponse) XXX_Unmarshal ¶
func (m *SetResponse) XXX_Unmarshal(b []byte) error
type UnsetRequest ¶
type UnsetRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*UnsetRequest) Descriptor ¶
func (*UnsetRequest) Descriptor() ([]byte, []int)
func (*UnsetRequest) GetKey ¶
func (m *UnsetRequest) GetKey() string
func (*UnsetRequest) ProtoMessage ¶
func (*UnsetRequest) ProtoMessage()
func (*UnsetRequest) Reset ¶
func (m *UnsetRequest) Reset()
func (*UnsetRequest) String ¶
func (m *UnsetRequest) String() string
func (*UnsetRequest) XXX_DiscardUnknown ¶
func (m *UnsetRequest) XXX_DiscardUnknown()
func (*UnsetRequest) XXX_Marshal ¶
func (m *UnsetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnsetRequest) XXX_Merge ¶
func (m *UnsetRequest) XXX_Merge(src proto.Message)
func (*UnsetRequest) XXX_Size ¶
func (m *UnsetRequest) XXX_Size() int
func (*UnsetRequest) XXX_Unmarshal ¶
func (m *UnsetRequest) XXX_Unmarshal(b []byte) error
type UnsetResponse ¶
type UnsetResponse 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 (*UnsetResponse) Descriptor ¶
func (*UnsetResponse) Descriptor() ([]byte, []int)
func (*UnsetResponse) GetOk ¶
func (m *UnsetResponse) GetOk() bool
func (*UnsetResponse) ProtoMessage ¶
func (*UnsetResponse) ProtoMessage()
func (*UnsetResponse) Reset ¶
func (m *UnsetResponse) Reset()
func (*UnsetResponse) String ¶
func (m *UnsetResponse) String() string
func (*UnsetResponse) XXX_DiscardUnknown ¶
func (m *UnsetResponse) XXX_DiscardUnknown()
func (*UnsetResponse) XXX_Marshal ¶
func (m *UnsetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnsetResponse) XXX_Merge ¶
func (m *UnsetResponse) XXX_Merge(src proto.Message)
func (*UnsetResponse) XXX_Size ¶
func (m *UnsetResponse) XXX_Size() int
func (*UnsetResponse) XXX_Unmarshal ¶
func (m *UnsetResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.