grpc

package
v0.0.0-...-f170a34 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pinger

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

Pinger is a gRPC implementation of Pinger interface that checks services liveness.

func NewPinger

func NewPinger(kaparameters keepalive.ClientParameters) *Pinger

NewPinger creates GRPCPinger instance.

func (*Pinger) Init

func (p *Pinger) Init(urls ...string) error

Init creates connections to the all services and adds them to local pool.

func (*Pinger) Ping

func (p *Pinger) Ping(ctx context.Context, url string) error

Ping makes a gRPC call to the service to check it's liveness.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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