check_grpc

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCheck

func NewCheck(grpcServer *grpc.Server) service.Check

Types

type CheckGrpc

type CheckGrpc struct {
	// contains filtered or unexported fields
}

func (*CheckGrpc) Exec

func (c *CheckGrpc) Exec(reg *api.AgentServiceRegistration)

func (*CheckGrpc) Set

func (c *CheckGrpc) Set(o *service.Options)

type HealthImpl

type HealthImpl struct{}

HealthImpl 健康检查实现

func (*HealthImpl) Check

Check 实现健康检查接口,这里直接返回健康状态,这里也可以有更复杂的健康检查策略,比如根据服务器负载来返回

Jump to

Keyboard shortcuts

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