Documentation ¶
Index ¶
- Variables
- type Service
- func (s *Service) ClearLeaderboard(ctx context.Context, request *leaderboard.ClearLeaderboardRequest) (*leaderboard.ClearLeaderboardResponse, error)
- func (s *Service) ExpireLeaderboard(_ context.Context, request *leaderboard.ExpireLeaderboardRequest) (*leaderboard.ExpireLeaderboardResponse, error)
- func (s *Service) RegisterWithGrpcServer(server siface.IGrpcServer) error
- func (s *Service) UpdateScore(ctx context.Context, request *leaderboard.UpdateScoreRequest) (*leaderboard.UpdateScoreResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseTime = time.Date(2124, 1, 1, 0, 0, 0, 0, time.UTC).UnixMilli()
View Source
var Module = fx.Provide( func( logger *zap.Logger, cliParams ofx.RedisParams, setting lbfx.LeaderboardSettingParams, ) (sfx.GrpcServiceResult, error) { if s, err := NewService(logger, cliParams.Redis, setting); err != nil { return sfx.GrpcServiceResult{}, err } else { return sfx.GrpcServiceResult{ GrpcService: s, }, nil } })
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { utility.WithoutAuth // contains filtered or unexported fields }
func NewService ¶
func (*Service) ClearLeaderboard ¶
func (s *Service) ClearLeaderboard(ctx context.Context, request *leaderboard.ClearLeaderboardRequest) (*leaderboard.ClearLeaderboardResponse, error)
func (*Service) ExpireLeaderboard ¶
func (s *Service) ExpireLeaderboard( _ context.Context, request *leaderboard.ExpireLeaderboardRequest, ) (*leaderboard.ExpireLeaderboardResponse, error)
func (*Service) RegisterWithGrpcServer ¶
func (s *Service) RegisterWithGrpcServer(server siface.IGrpcServer) error
func (*Service) UpdateScore ¶
func (s *Service) UpdateScore(ctx context.Context, request *leaderboard.UpdateScoreRequest) (*leaderboard.UpdateScoreResponse, error)
Click to show internal directories.
Click to hide internal directories.