Versions in this module Expand all Collapse all v1 v1.0.0 May 10, 2021 Changes in this version + var Cache_ServiceDesc = grpc.ServiceDesc + var File_cache_proto protoreflect.FileDescriptor + func RegisterCacheServer(s grpc.ServiceRegistrar, srv CacheServer) + type CacheClient interface + Delete func(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*Empty, error) + Get func(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) + Init func(ctx context.Context, in *SettingRequest, opts ...grpc.CallOption) (*Empty, error) + Put func(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*Empty, error) + func NewCacheClient(cc grpc.ClientConnInterface) CacheClient + type CacheServer interface + Delete func(context.Context, *DeleteRequest) (*Empty, error) + Get func(context.Context, *GetRequest) (*GetResponse, error) + Init func(context.Context, *SettingRequest) (*Empty, error) + Put func(context.Context, *PutRequest) (*Empty, error) + type DeleteRequest struct + Key string + func (*DeleteRequest) Descriptor() ([]byte, []int) + func (*DeleteRequest) ProtoMessage() + func (x *DeleteRequest) GetKey() string + func (x *DeleteRequest) ProtoReflect() protoreflect.Message + func (x *DeleteRequest) Reset() + func (x *DeleteRequest) String() string + type Empty struct + func (*Empty) Descriptor() ([]byte, []int) + func (*Empty) ProtoMessage() + func (x *Empty) ProtoReflect() protoreflect.Message + func (x *Empty) Reset() + func (x *Empty) String() string + type GetRequest struct + Key string + func (*GetRequest) Descriptor() ([]byte, []int) + func (*GetRequest) ProtoMessage() + func (x *GetRequest) GetKey() string + func (x *GetRequest) ProtoReflect() protoreflect.Message + func (x *GetRequest) Reset() + func (x *GetRequest) String() string + type GetResponse struct + Value string + func (*GetResponse) Descriptor() ([]byte, []int) + func (*GetResponse) ProtoMessage() + func (x *GetResponse) GetValue() string + func (x *GetResponse) ProtoReflect() protoreflect.Message + func (x *GetResponse) Reset() + func (x *GetResponse) String() string + type PutRequest struct + Key string + Value string + func (*PutRequest) Descriptor() ([]byte, []int) + func (*PutRequest) ProtoMessage() + func (x *PutRequest) GetKey() string + func (x *PutRequest) GetValue() string + func (x *PutRequest) ProtoReflect() protoreflect.Message + func (x *PutRequest) Reset() + func (x *PutRequest) String() string + type SettingRequest struct + CacheTime int32 + Endpoints []string + Password string + UserName string + func (*SettingRequest) Descriptor() ([]byte, []int) + func (*SettingRequest) ProtoMessage() + func (x *SettingRequest) GetCacheTime() int32 + func (x *SettingRequest) GetEndpoints() []string + func (x *SettingRequest) GetPassword() string + func (x *SettingRequest) GetUserName() string + func (x *SettingRequest) ProtoReflect() protoreflect.Message + func (x *SettingRequest) Reset() + func (x *SettingRequest) String() string + type UnimplementedCacheServer struct + func (UnimplementedCacheServer) Delete(context.Context, *DeleteRequest) (*Empty, error) + func (UnimplementedCacheServer) Get(context.Context, *GetRequest) (*GetResponse, error) + func (UnimplementedCacheServer) Init(context.Context, *SettingRequest) (*Empty, error) + func (UnimplementedCacheServer) Put(context.Context, *PutRequest) (*Empty, error) + type UnsafeCacheServer interface