Documentation ¶
Index ¶
- func RegisterCacheServer(s *grpc.Server, srv CacheServer)
- type CacheClient
- type CacheDel
- func (*CacheDel) Descriptor() ([]byte, []int)
- func (m *CacheDel) GetCacheName() string
- func (m *CacheDel) GetKey() []byte
- func (m *CacheDel) GetValue() []byte
- func (*CacheDel) ProtoMessage()
- func (m *CacheDel) Reset()
- func (m *CacheDel) String() string
- func (m *CacheDel) XXX_DiscardUnknown()
- func (m *CacheDel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CacheDel) XXX_Merge(src proto.Message)
- func (m *CacheDel) XXX_Size() int
- func (m *CacheDel) XXX_Unmarshal(b []byte) error
- type CacheDelResp
- func (*CacheDelResp) Descriptor() ([]byte, []int)
- func (*CacheDelResp) ProtoMessage()
- func (m *CacheDelResp) Reset()
- func (m *CacheDelResp) String() string
- func (m *CacheDelResp) XXX_DiscardUnknown()
- func (m *CacheDelResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CacheDelResp) XXX_Merge(src proto.Message)
- func (m *CacheDelResp) XXX_Size() int
- func (m *CacheDelResp) XXX_Unmarshal(b []byte) error
- type CacheServer
- type CacheSet
- func (*CacheSet) Descriptor() ([]byte, []int)
- func (m *CacheSet) GetCacheName() string
- func (m *CacheSet) GetKey() []byte
- func (m *CacheSet) GetValue() []byte
- func (*CacheSet) ProtoMessage()
- func (m *CacheSet) Reset()
- func (m *CacheSet) String() string
- func (m *CacheSet) XXX_DiscardUnknown()
- func (m *CacheSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CacheSet) XXX_Merge(src proto.Message)
- func (m *CacheSet) XXX_Size() int
- func (m *CacheSet) XXX_Unmarshal(b []byte) error
- type CacheSetResp
- func (*CacheSetResp) Descriptor() ([]byte, []int)
- func (*CacheSetResp) ProtoMessage()
- func (m *CacheSetResp) Reset()
- func (m *CacheSetResp) String() string
- func (m *CacheSetResp) XXX_DiscardUnknown()
- func (m *CacheSetResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CacheSetResp) XXX_Merge(src proto.Message)
- func (m *CacheSetResp) XXX_Size() int
- func (m *CacheSetResp) 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 { Set(ctx context.Context, in *CacheSet, opts ...grpc.CallOption) (*CacheSetResp, error) Del(ctx context.Context, in *CacheDel, opts ...grpc.CallOption) (*CacheDelResp, error) }
func NewCacheClient ¶
func NewCacheClient(cc *grpc.ClientConn) CacheClient
type CacheDel ¶
type CacheDel struct { CacheName string `protobuf:"bytes,1,opt,name=cache_name,json=cacheName" json:"cache_name,omitempty"` Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CacheDel) Descriptor ¶
func (*CacheDel) GetCacheName ¶
func (*CacheDel) ProtoMessage ¶
func (*CacheDel) ProtoMessage()
func (*CacheDel) XXX_DiscardUnknown ¶
func (m *CacheDel) XXX_DiscardUnknown()
func (*CacheDel) XXX_Marshal ¶
func (*CacheDel) XXX_Unmarshal ¶
type CacheDelResp ¶
type CacheDelResp struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CacheDelResp) Descriptor ¶
func (*CacheDelResp) Descriptor() ([]byte, []int)
func (*CacheDelResp) ProtoMessage ¶
func (*CacheDelResp) ProtoMessage()
func (*CacheDelResp) Reset ¶
func (m *CacheDelResp) Reset()
func (*CacheDelResp) String ¶
func (m *CacheDelResp) String() string
func (*CacheDelResp) XXX_DiscardUnknown ¶
func (m *CacheDelResp) XXX_DiscardUnknown()
func (*CacheDelResp) XXX_Marshal ¶
func (m *CacheDelResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CacheDelResp) XXX_Merge ¶
func (dst *CacheDelResp) XXX_Merge(src proto.Message)
func (*CacheDelResp) XXX_Size ¶
func (m *CacheDelResp) XXX_Size() int
func (*CacheDelResp) XXX_Unmarshal ¶
func (m *CacheDelResp) XXX_Unmarshal(b []byte) error
type CacheServer ¶
type CacheServer interface { Set(context.Context, *CacheSet) (*CacheSetResp, error) Del(context.Context, *CacheDel) (*CacheDelResp, error) }
type CacheSet ¶
type CacheSet struct { CacheName string `protobuf:"bytes,1,opt,name=cache_name,json=cacheName" json:"cache_name,omitempty"` Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CacheSet) Descriptor ¶
func (*CacheSet) GetCacheName ¶
func (*CacheSet) ProtoMessage ¶
func (*CacheSet) ProtoMessage()
func (*CacheSet) XXX_DiscardUnknown ¶
func (m *CacheSet) XXX_DiscardUnknown()
func (*CacheSet) XXX_Marshal ¶
func (*CacheSet) XXX_Unmarshal ¶
type CacheSetResp ¶
type CacheSetResp struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CacheSetResp) Descriptor ¶
func (*CacheSetResp) Descriptor() ([]byte, []int)
func (*CacheSetResp) ProtoMessage ¶
func (*CacheSetResp) ProtoMessage()
func (*CacheSetResp) Reset ¶
func (m *CacheSetResp) Reset()
func (*CacheSetResp) String ¶
func (m *CacheSetResp) String() string
func (*CacheSetResp) XXX_DiscardUnknown ¶
func (m *CacheSetResp) XXX_DiscardUnknown()
func (*CacheSetResp) XXX_Marshal ¶
func (m *CacheSetResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CacheSetResp) XXX_Merge ¶
func (dst *CacheSetResp) XXX_Merge(src proto.Message)
func (*CacheSetResp) XXX_Size ¶
func (m *CacheSetResp) XXX_Size() int
func (*CacheSetResp) XXX_Unmarshal ¶
func (m *CacheSetResp) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.