Documentation ¶
Index ¶
- Variables
- type MapService
- type RedisMapService
- func (m *RedisMapService) MapCount(ctx context.Context, in *pb.MapCountRequest) (*pb.MapCountResponse, error)
- func (m *RedisMapService) MapDelete(ctx context.Context, in *pb.MapDeleteRequest) (*pb.MapDeleteResponse, error)
- func (m *RedisMapService) MapGet(ctx context.Context, in *pb.MapGetRequest) (*pb.MapGetResponse, error)
- func (m *RedisMapService) MapKeys(ctx context.Context, in *pb.MapKeysRequest) (*pb.MapKeysResponse, error)
- func (m *RedisMapService) MapSet(ctx context.Context, in *pb.MapSetRequest) (*pb.MapSetResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Keys = &keys{}
Functions ¶
This section is empty.
Types ¶
type MapService ¶
type MapService interface { pb.MapServiceServer MapSet(ctx context.Context, in *pb.MapSetRequest) (*pb.MapSetResponse, error) MapGet(ctx context.Context, in *pb.MapGetRequest) (*pb.MapGetResponse, error) MapDelete(ctx context.Context, in *pb.MapDeleteRequest) (*pb.MapDeleteResponse, error) MapCount(ctx context.Context, in *pb.MapCountRequest) (*pb.MapCountResponse, error) MapKeys(ctx context.Context, in *pb.MapKeysRequest) (*pb.MapKeysResponse, error) }
func NewRedisMapService ¶
func NewRedisMapService(rdb *common.RedisClient) (MapService, error)
type RedisMapService ¶
type RedisMapService struct { pb.UnimplementedMapServiceServer // contains filtered or unexported fields }
func (*RedisMapService) MapCount ¶
func (m *RedisMapService) MapCount(ctx context.Context, in *pb.MapCountRequest) (*pb.MapCountResponse, error)
func (*RedisMapService) MapDelete ¶
func (m *RedisMapService) MapDelete(ctx context.Context, in *pb.MapDeleteRequest) (*pb.MapDeleteResponse, error)
func (*RedisMapService) MapGet ¶
func (m *RedisMapService) MapGet(ctx context.Context, in *pb.MapGetRequest) (*pb.MapGetResponse, error)
func (*RedisMapService) MapKeys ¶
func (m *RedisMapService) MapKeys(ctx context.Context, in *pb.MapKeysRequest) (*pb.MapKeysResponse, error)
func (*RedisMapService) MapSet ¶
func (m *RedisMapService) MapSet(ctx context.Context, in *pb.MapSetRequest) (*pb.MapSetResponse, error)
Map service implementations
Click to show internal directories.
Click to hide internal directories.