server

package
v0.0.0-...-c6d8e01 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is server providers.

Functions

func Auth

func Auth() middleware.Middleware

func Log

func Log() middleware.Middleware

func NewGRPCServer

func NewGRPCServer(c *conf.Server, greeter *service.GreeterService, logger log.Logger) *grpc.Server

NewGRPCServer new a gRPC server.

func NewHTTPServer

func NewHTTPServer(c *conf.Server, greeter *service.GreeterService, logger log.Logger) *http.Server

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

func (*CronWorker) Start

func (c *CronWorker) Start(ctx context.Context) error

func (*CronWorker) Stop

func (c *CronWorker) Stop(ctx context.Context) error

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{})

Jump to

Keyboard shortcuts

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