cache

package
v0.0.0-...-4702bed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_cache_cache_proto protoreflect.FileDescriptor

Functions

func RegisterCacheServer

func RegisterCacheServer(s *grpc.Server, srv CacheServer)

Types

type CacheClient

type CacheClient interface {
	// friendInfo
	GetFriendIDListFromCache(ctx context.Context, in *GetFriendIDListFromCacheReq, opts ...grpc.CallOption) (*GetFriendIDListFromCacheResp, error)
	// for dtm
	DelFriendIDListFromCache(ctx context.Context, in *DelFriendIDListFromCacheReq, opts ...grpc.CallOption) (*DelFriendIDListFromCacheResp, error)
	// blackList
	GetBlackIDListFromCache(ctx context.Context, in *GetBlackIDListFromCacheReq, opts ...grpc.CallOption) (*GetBlackIDListFromCacheResp, error)
	// for dtm
	DelBlackIDListFromCache(ctx context.Context, in *DelBlackIDListFromCacheReq, opts ...grpc.CallOption) (*DelBlackIDListFromCacheResp, error)
	// group
	GetGroupMemberIDListFromCache(ctx context.Context, in *GetGroupMemberIDListFromCacheReq, opts ...grpc.CallOption) (*GetGroupMemberIDListFromCacheResp, error)
	// for dtm
	DelGroupMemberIDListFromCache(ctx context.Context, in *DelGroupMemberIDListFromCacheReq, opts ...grpc.CallOption) (*DelGroupMemberIDListFromCacheResp, 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.ClientConnInterface) CacheClient

type CacheServer

type CacheServer interface {
	// friendInfo
	GetFriendIDListFromCache(context.Context, *GetFriendIDListFromCacheReq) (*GetFriendIDListFromCacheResp, error)
	// for dtm
	DelFriendIDListFromCache(context.Context, *DelFriendIDListFromCacheReq) (*DelFriendIDListFromCacheResp, error)
	// blackList
	GetBlackIDListFromCache(context.Context, *GetBlackIDListFromCacheReq) (*GetBlackIDListFromCacheResp, error)
	// for dtm
	DelBlackIDListFromCache(context.Context, *DelBlackIDListFromCacheReq) (*DelBlackIDListFromCacheResp, error)
	// group
	GetGroupMemberIDListFromCache(context.Context, *GetGroupMemberIDListFromCacheReq) (*GetGroupMemberIDListFromCacheResp, error)
	// for dtm
	DelGroupMemberIDListFromCache(context.Context, *DelGroupMemberIDListFromCacheReq) (*DelGroupMemberIDListFromCacheResp, error)
}

CacheServer is the server API for Cache service.

type CommonResp

type CommonResp struct {
	ErrCode int32  `protobuf:"varint,1,opt,name=errCode,proto3" json:"errCode,omitempty"`
	ErrMsg  string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	// contains filtered or unexported fields
}

func (*CommonResp) Descriptor deprecated

func (*CommonResp) Descriptor() ([]byte, []int)

Deprecated: Use CommonResp.ProtoReflect.Descriptor instead.

func (*CommonResp) GetErrCode

func (x *CommonResp) GetErrCode() int32

func (*CommonResp) GetErrMsg

func (x *CommonResp) GetErrMsg() string

func (*CommonResp) ProtoMessage

func (*CommonResp) ProtoMessage()

func (*CommonResp) ProtoReflect

func (x *CommonResp) ProtoReflect() protoreflect.Message

func (*CommonResp) Reset

func (x *CommonResp) Reset()

func (*CommonResp) String

func (x *CommonResp) String() string

type DelBlackIDListFromCacheReq

type DelBlackIDListFromCacheReq struct {
	UserID      string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	OperationID string `protobuf:"bytes,2,opt,name=operationID,proto3" json:"operationID,omitempty"`
	// contains filtered or unexported fields
}

func (*DelBlackIDListFromCacheReq) Descriptor deprecated

func (*DelBlackIDListFromCacheReq) Descriptor() ([]byte, []int)

Deprecated: Use DelBlackIDListFromCacheReq.ProtoReflect.Descriptor instead.

func (*DelBlackIDListFromCacheReq) GetOperationID

func (x *DelBlackIDListFromCacheReq) GetOperationID() string

func (*DelBlackIDListFromCacheReq) GetUserID

func (x *DelBlackIDListFromCacheReq) GetUserID() string

func (*DelBlackIDListFromCacheReq) ProtoMessage

func (*DelBlackIDListFromCacheReq) ProtoMessage()

func (*DelBlackIDListFromCacheReq) ProtoReflect

func (*DelBlackIDListFromCacheReq) Reset

func (x *DelBlackIDListFromCacheReq) Reset()

func (*DelBlackIDListFromCacheReq) String

func (x *DelBlackIDListFromCacheReq) String() string

type DelBlackIDListFromCacheResp

type DelBlackIDListFromCacheResp struct {
	CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp,proto3" json:"commonResp,omitempty"`
	// contains filtered or unexported fields
}

func (*DelBlackIDListFromCacheResp) Descriptor deprecated

func (*DelBlackIDListFromCacheResp) Descriptor() ([]byte, []int)

Deprecated: Use DelBlackIDListFromCacheResp.ProtoReflect.Descriptor instead.

func (*DelBlackIDListFromCacheResp) GetCommonResp

func (x *DelBlackIDListFromCacheResp) GetCommonResp() *CommonResp

func (*DelBlackIDListFromCacheResp) ProtoMessage

func (*DelBlackIDListFromCacheResp) ProtoMessage()

func (*DelBlackIDListFromCacheResp) ProtoReflect

func (*DelBlackIDListFromCacheResp) Reset

func (x *DelBlackIDListFromCacheResp) Reset()

func (*DelBlackIDListFromCacheResp) String

func (x *DelBlackIDListFromCacheResp) String() string

type DelFriendIDListFromCacheReq

type DelFriendIDListFromCacheReq struct {
	UserID      string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	OperationID string `protobuf:"bytes,2,opt,name=operationID,proto3" json:"operationID,omitempty"`
	// contains filtered or unexported fields
}

func (*DelFriendIDListFromCacheReq) Descriptor deprecated

func (*DelFriendIDListFromCacheReq) Descriptor() ([]byte, []int)

Deprecated: Use DelFriendIDListFromCacheReq.ProtoReflect.Descriptor instead.

func (*DelFriendIDListFromCacheReq) GetOperationID

func (x *DelFriendIDListFromCacheReq) GetOperationID() string

func (*DelFriendIDListFromCacheReq) GetUserID

func (x *DelFriendIDListFromCacheReq) GetUserID() string

func (*DelFriendIDListFromCacheReq) ProtoMessage

func (*DelFriendIDListFromCacheReq) ProtoMessage()

func (*DelFriendIDListFromCacheReq) ProtoReflect

func (*DelFriendIDListFromCacheReq) Reset

func (x *DelFriendIDListFromCacheReq) Reset()

func (*DelFriendIDListFromCacheReq) String

func (x *DelFriendIDListFromCacheReq) String() string

type DelFriendIDListFromCacheResp

type DelFriendIDListFromCacheResp struct {
	CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp,proto3" json:"commonResp,omitempty"`
	// contains filtered or unexported fields
}

func (*DelFriendIDListFromCacheResp) Descriptor deprecated

func (*DelFriendIDListFromCacheResp) Descriptor() ([]byte, []int)

Deprecated: Use DelFriendIDListFromCacheResp.ProtoReflect.Descriptor instead.

func (*DelFriendIDListFromCacheResp) GetCommonResp

func (x *DelFriendIDListFromCacheResp) GetCommonResp() *CommonResp

func (*DelFriendIDListFromCacheResp) ProtoMessage

func (*DelFriendIDListFromCacheResp) ProtoMessage()

func (*DelFriendIDListFromCacheResp) ProtoReflect

func (*DelFriendIDListFromCacheResp) Reset

func (x *DelFriendIDListFromCacheResp) Reset()

func (*DelFriendIDListFromCacheResp) String

type DelGroupMemberIDListFromCacheReq

type DelGroupMemberIDListFromCacheReq struct {
	GroupID     string `protobuf:"bytes,1,opt,name=groupID,proto3" json:"groupID,omitempty"`
	OperationID string `protobuf:"bytes,2,opt,name=operationID,proto3" json:"operationID,omitempty"`
	// contains filtered or unexported fields
}

func (*DelGroupMemberIDListFromCacheReq) Descriptor deprecated

func (*DelGroupMemberIDListFromCacheReq) Descriptor() ([]byte, []int)

Deprecated: Use DelGroupMemberIDListFromCacheReq.ProtoReflect.Descriptor instead.

func (*DelGroupMemberIDListFromCacheReq) GetGroupID

func (x *DelGroupMemberIDListFromCacheReq) GetGroupID() string

func (*DelGroupMemberIDListFromCacheReq) GetOperationID

func (x *DelGroupMemberIDListFromCacheReq) GetOperationID() string

func (*DelGroupMemberIDListFromCacheReq) ProtoMessage

func (*DelGroupMemberIDListFromCacheReq) ProtoMessage()

func (*DelGroupMemberIDListFromCacheReq) ProtoReflect

func (*DelGroupMemberIDListFromCacheReq) Reset

func (*DelGroupMemberIDListFromCacheReq) String

type DelGroupMemberIDListFromCacheResp

type DelGroupMemberIDListFromCacheResp struct {
	CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp,proto3" json:"commonResp,omitempty"`
	// contains filtered or unexported fields
}

func (*DelGroupMemberIDListFromCacheResp) Descriptor deprecated

func (*DelGroupMemberIDListFromCacheResp) Descriptor() ([]byte, []int)

Deprecated: Use DelGroupMemberIDListFromCacheResp.ProtoReflect.Descriptor instead.

func (*DelGroupMemberIDListFromCacheResp) GetCommonResp

func (x *DelGroupMemberIDListFromCacheResp) GetCommonResp() *CommonResp

func (*DelGroupMemberIDListFromCacheResp) ProtoMessage

func (*DelGroupMemberIDListFromCacheResp) ProtoMessage()

func (*DelGroupMemberIDListFromCacheResp) ProtoReflect

func (*DelGroupMemberIDListFromCacheResp) Reset

func (*DelGroupMemberIDListFromCacheResp) String

type GetBlackIDListFromCacheReq

type GetBlackIDListFromCacheReq struct {
	UserID      string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	OperationID string `protobuf:"bytes,2,opt,name=operationID,proto3" json:"operationID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlackIDListFromCacheReq) Descriptor deprecated

func (*GetBlackIDListFromCacheReq) Descriptor() ([]byte, []int)

Deprecated: Use GetBlackIDListFromCacheReq.ProtoReflect.Descriptor instead.

func (*GetBlackIDListFromCacheReq) GetOperationID

func (x *GetBlackIDListFromCacheReq) GetOperationID() string

func (*GetBlackIDListFromCacheReq) GetUserID

func (x *GetBlackIDListFromCacheReq) GetUserID() string

func (*GetBlackIDListFromCacheReq) ProtoMessage

func (*GetBlackIDListFromCacheReq) ProtoMessage()

func (*GetBlackIDListFromCacheReq) ProtoReflect

func (*GetBlackIDListFromCacheReq) Reset

func (x *GetBlackIDListFromCacheReq) Reset()

func (*GetBlackIDListFromCacheReq) String

func (x *GetBlackIDListFromCacheReq) String() string

type GetBlackIDListFromCacheResp

type GetBlackIDListFromCacheResp struct {
	UserIDList []string    `protobuf:"bytes,1,rep,name=userIDList,proto3" json:"userIDList,omitempty"`
	CommonResp *CommonResp `protobuf:"bytes,2,opt,name=commonResp,proto3" json:"commonResp,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlackIDListFromCacheResp) Descriptor deprecated

func (*GetBlackIDListFromCacheResp) Descriptor() ([]byte, []int)

Deprecated: Use GetBlackIDListFromCacheResp.ProtoReflect.Descriptor instead.

func (*GetBlackIDListFromCacheResp) GetCommonResp

func (x *GetBlackIDListFromCacheResp) GetCommonResp() *CommonResp

func (*GetBlackIDListFromCacheResp) GetUserIDList

func (x *GetBlackIDListFromCacheResp) GetUserIDList() []string

func (*GetBlackIDListFromCacheResp) ProtoMessage

func (*GetBlackIDListFromCacheResp) ProtoMessage()

func (*GetBlackIDListFromCacheResp) ProtoReflect

func (*GetBlackIDListFromCacheResp) Reset

func (x *GetBlackIDListFromCacheResp) Reset()

func (*GetBlackIDListFromCacheResp) String

func (x *GetBlackIDListFromCacheResp) String() string

type GetFriendIDListFromCacheReq

type GetFriendIDListFromCacheReq struct {
	UserID      string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	OperationID string `protobuf:"bytes,2,opt,name=operationID,proto3" json:"operationID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFriendIDListFromCacheReq) Descriptor deprecated

func (*GetFriendIDListFromCacheReq) Descriptor() ([]byte, []int)

Deprecated: Use GetFriendIDListFromCacheReq.ProtoReflect.Descriptor instead.

func (*GetFriendIDListFromCacheReq) GetOperationID

func (x *GetFriendIDListFromCacheReq) GetOperationID() string

func (*GetFriendIDListFromCacheReq) GetUserID

func (x *GetFriendIDListFromCacheReq) GetUserID() string

func (*GetFriendIDListFromCacheReq) ProtoMessage

func (*GetFriendIDListFromCacheReq) ProtoMessage()

func (*GetFriendIDListFromCacheReq) ProtoReflect

func (*GetFriendIDListFromCacheReq) Reset

func (x *GetFriendIDListFromCacheReq) Reset()

func (*GetFriendIDListFromCacheReq) String

func (x *GetFriendIDListFromCacheReq) String() string

type GetFriendIDListFromCacheResp

type GetFriendIDListFromCacheResp struct {
	UserIDList []string    `protobuf:"bytes,1,rep,name=userIDList,proto3" json:"userIDList,omitempty"`
	CommonResp *CommonResp `protobuf:"bytes,2,opt,name=commonResp,proto3" json:"commonResp,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFriendIDListFromCacheResp) Descriptor deprecated

func (*GetFriendIDListFromCacheResp) Descriptor() ([]byte, []int)

Deprecated: Use GetFriendIDListFromCacheResp.ProtoReflect.Descriptor instead.

func (*GetFriendIDListFromCacheResp) GetCommonResp

func (x *GetFriendIDListFromCacheResp) GetCommonResp() *CommonResp

func (*GetFriendIDListFromCacheResp) GetUserIDList

func (x *GetFriendIDListFromCacheResp) GetUserIDList() []string

func (*GetFriendIDListFromCacheResp) ProtoMessage

func (*GetFriendIDListFromCacheResp) ProtoMessage()

func (*GetFriendIDListFromCacheResp) ProtoReflect

func (*GetFriendIDListFromCacheResp) Reset

func (x *GetFriendIDListFromCacheResp) Reset()

func (*GetFriendIDListFromCacheResp) String

type GetGroupMemberIDListFromCacheReq

type GetGroupMemberIDListFromCacheReq struct {
	OperationID string `protobuf:"bytes,1,opt,name=operationID,proto3" json:"operationID,omitempty"`
	GroupID     string `protobuf:"bytes,2,opt,name=groupID,proto3" json:"groupID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGroupMemberIDListFromCacheReq) Descriptor deprecated

func (*GetGroupMemberIDListFromCacheReq) Descriptor() ([]byte, []int)

Deprecated: Use GetGroupMemberIDListFromCacheReq.ProtoReflect.Descriptor instead.

func (*GetGroupMemberIDListFromCacheReq) GetGroupID

func (x *GetGroupMemberIDListFromCacheReq) GetGroupID() string

func (*GetGroupMemberIDListFromCacheReq) GetOperationID

func (x *GetGroupMemberIDListFromCacheReq) GetOperationID() string

func (*GetGroupMemberIDListFromCacheReq) ProtoMessage

func (*GetGroupMemberIDListFromCacheReq) ProtoMessage()

func (*GetGroupMemberIDListFromCacheReq) ProtoReflect

func (*GetGroupMemberIDListFromCacheReq) Reset

func (*GetGroupMemberIDListFromCacheReq) String

type GetGroupMemberIDListFromCacheResp

type GetGroupMemberIDListFromCacheResp struct {
	CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp,proto3" json:"commonResp,omitempty"`
	UserIDList []string    `protobuf:"bytes,2,rep,name=userIDList,proto3" json:"userIDList,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGroupMemberIDListFromCacheResp) Descriptor deprecated

func (*GetGroupMemberIDListFromCacheResp) Descriptor() ([]byte, []int)

Deprecated: Use GetGroupMemberIDListFromCacheResp.ProtoReflect.Descriptor instead.

func (*GetGroupMemberIDListFromCacheResp) GetCommonResp

func (x *GetGroupMemberIDListFromCacheResp) GetCommonResp() *CommonResp

func (*GetGroupMemberIDListFromCacheResp) GetUserIDList

func (x *GetGroupMemberIDListFromCacheResp) GetUserIDList() []string

func (*GetGroupMemberIDListFromCacheResp) ProtoMessage

func (*GetGroupMemberIDListFromCacheResp) ProtoMessage()

func (*GetGroupMemberIDListFromCacheResp) ProtoReflect

func (*GetGroupMemberIDListFromCacheResp) Reset

func (*GetGroupMemberIDListFromCacheResp) String

type UnimplementedCacheServer

type UnimplementedCacheServer struct {
}

UnimplementedCacheServer can be embedded to have forward compatible implementations.

func (*UnimplementedCacheServer) DelBlackIDListFromCache

func (*UnimplementedCacheServer) GetBlackIDListFromCache

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL