private

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 NewService(l *zap.Logger, cli *redis.Client, setting lbfx.LeaderboardSettingParams) (result *Service, err error)

func (*Service) RegisterWithGrpcServer

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

func (*Service) UpdateScore

Jump to

Keyboard shortcuts

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