Documentation ¶
Index ¶
- Variables
- func Auth() middleware.Middleware
- func Log() middleware.Middleware
- func NewGRPCServer(c *conf.Server, greeter *service.GreeterService, logger log.Logger) *grpc.Server
- func NewHTTPServer(c *conf.Server, greeter *service.GreeterService, logger log.Logger) *http.Server
- type CronWorker
- type CronWorkerLogger
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGRPCServer, NewHTTPServer, NewCronWorker)
ProviderSet is server providers.
Functions ¶
func Auth ¶
func Auth() middleware.Middleware
func Log ¶
func Log() middleware.Middleware
func NewGRPCServer ¶
NewGRPCServer new a gRPC server.
func NewHTTPServer ¶
NewHTTPServer new an HTTP server.
Types ¶
type CronWorker ¶
type CronWorker struct {
// contains filtered or unexported fields
}
func NewCronWorker ¶
func NewCronWorker(c *conf.Server, greeter *service.GreeterService, logger log.Logger) *CronWorker
type CronWorkerLogger ¶
type CronWorkerLogger struct {
// contains filtered or unexported fields
}
xxl.Logger接口实现
func (*CronWorkerLogger) Error ¶
func (l *CronWorkerLogger) Error(format string, a ...interface{})
func (*CronWorkerLogger) Info ¶
func (l *CronWorkerLogger) Info(format string, a ...interface{})
Click to show internal directories.
Click to hide internal directories.