grpcclient

package
v0.0.0-...-b34fa9a Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(watcher *watchdog.Client, addr string) (*grpc.ClientConn, error)

New returns a new instance of grpc.ClientConn

Types

type ConfigOption

type ConfigOption struct {
	grpc.EmptyCallOption
	ServiceName string
	CallName    string
}

func (ConfigOption) IsValid

func (o ConfigOption) IsValid() error

type RetryMode

type RetryMode int
const (
	RetryNone RetryMode = iota
	RetryClient
	RetryServer
	RetryClientAndServer
)

type TimeoutAndRetryOption

type TimeoutAndRetryOption struct {
	grpc.EmptyCallOption
	TotalTimeout  time.Duration
	TimeoutPerTry time.Duration
	RetryMode     RetryMode
	RetryCount    uint64
}

func (TimeoutAndRetryOption) IsValid

func (o TimeoutAndRetryOption) IsValid() error

Jump to

Keyboard shortcuts

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