server

package
v0.0.0-...-476383d Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorsMsgMap = map[string]string{
		"UNKNOWN_ERROR": "未知错误",
	}
)

ProviderSet is user providers.

Functions

func NewGRPCServer

func NewGRPCServer(c *conf.Server, userService *service.UserService, partnerService *service.PartnerService, logger log.Logger) *grpc.Server

NewGRPCServer new a gRPC user.

func NewHTTPServer

func NewHTTPServer(c *conf.Server, userService *service.UserService, partnerService *service.PartnerService, logger log.Logger) *http.Server

NewHTTPServer new a HTTP user.

Types

type CronJob

type CronJob struct {
	// contains filtered or unexported fields
}

func NewCronJob

func NewCronJob(redSync *redsync.Mutex, uc *biz.UserUseCase) *CronJob

func (*CronJob) Start

func (s *CronJob) Start(_ context.Context) error

func (*CronJob) Stop

func (s *CronJob) Stop(_ context.Context) error

type Job

type Job struct {
	// contains filtered or unexported fields
}

func (*Job) UsersRecommend

func (j *Job) UsersRecommend()

Jump to

Keyboard shortcuts

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