retryclient

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	retry.Params
	Address         string
	Dialer          srpc.Dialer
	KeepAlive       bool
	KeepAlivePeriod time.Duration
	Network         string
	TlsConfig       *tls.Config
}

type RetryClient

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

func DialHTTP

func DialHTTP(params Params) (*RetryClient, error)

func (*RetryClient) Call

func (client *RetryClient) Call(serviceMethod string) (*srpc.Conn, error)

func (*RetryClient) Close

func (client *RetryClient) Close() error

func (*RetryClient) Ping

func (client *RetryClient) Ping() error

func (*RetryClient) RequestReply

func (client *RetryClient) RequestReply(serviceMethod string,
	request interface{}, reply interface{}) error

func (*RetryClient) SetKeepAlive

func (client *RetryClient) SetKeepAlive(keepAlive bool) error

func (*RetryClient) SetKeepAlivePeriod

func (client *RetryClient) SetKeepAlivePeriod(d time.Duration) error

Jump to

Keyboard shortcuts

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