server

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvalidGrpcServer = errors.New("invalid grpc server")
	InvalidGrpcConf   = errors.New("invalid grpc config")
)
View Source
var (
	InvalidHttpConf   = errors.New("invalid http config")
	InvalidHttpEngine = errors.New("invalid http engine")
)

Functions

func GraceGrpcServer added in v1.2.2

func GraceGrpcServer(graceGrpc *cliServer.GraceGrpc) error

GraceGrpcServer 优雅启动grpc服务

func GraceHttpServer added in v1.2.2

func GraceHttpServer(graceHttp *cliServer.GraceHttp) error

Types

type HookHandler added in v1.2.2

type HookHandler func()

type OnHookFunc added in v1.2.2

type OnHookFunc struct {
	StartUp  []HookHandler
	ShutDown []HookHandler
}

Jump to

Keyboard shortcuts

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