rpcchecker

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

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

Checker 服务检查器

func NewChecker

func NewChecker(cc zrpc.RpcClientConf, options ...zrpc.ClientOption) *Checker

NewChecker 新建服务检查器

func NewCheckerWithClient

func NewCheckerWithClient(cli zrpc.Client) *Checker

NewCheckerWithClient 通过已有客户端新建服务检查器

func (*Checker) Check

func (c *Checker) Check(ctx context.Context) health.Health

Check 检查服务健康情况

Jump to

Keyboard shortcuts

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