health

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AllServices = "*"

Variables

This section is empty.

Functions

func HealthMiddleware

func HealthMiddleware(h http.Handler) http.Handler

HealthMiddleware HTTP健康检查中间件

Types

type HealthServer

type HealthServer struct {
	Server *grpc_health.Server
}

HealthServer 简化版健康检查

func NewHealthServer

func NewHealthServer() *HealthServer

func (*HealthServer) AuthFuncOverride

func (s *HealthServer) AuthFuncOverride(ctx context.Context, _ string) (context.Context, error)

AuthFuncOverride health check without grpc auth middleware.

func (*HealthServer) Check

Check implement check

func (*HealthServer) Close

func (s *HealthServer) Close()

Close

func (*HealthServer) Start

func (s *HealthServer) Start(gs *grpc.Server)

Start

func (*HealthServer) Watch

Watch implement watch

Jump to

Keyboard shortcuts

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