public

package
v0.0.0-...-1c05b05 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 {
	// contains filtered or unexported fields
}

func NewService

func NewService(l *zap.Logger, cli *redis.Client, setting lbfx.LeaderboardSettingParams) (result *Service, err error)

func (*Service) GetLeaderboard

func (*Service) GetRank

func (*Service) RegisterWithGrpcServer

func (s *Service) RegisterWithGrpcServer(server siface.IGrpcServer) error

Jump to

Keyboard shortcuts

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