Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorsMsgMap = map[string]string{
"UNKNOWN_ERROR": "未知错误",
}
)
View Source
var ProviderSet = wire.NewSet(NewHTTPServer, NewGRPCServer, NewCronJob)
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
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
func (*Job) UsersRecommend ¶
func (j *Job) UsersRecommend()
Click to show internal directories.
Click to hide internal directories.