rpctry

package module
v0.0.0-...-692c4c2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Close() error

	Call(ctx context.Context, serviceMethod string, args interface{}, reply interface{}) error

	// Call rpc server timeout with 30s
	TryCall(serviceMethod string, args interface{}, reply interface{}) error
}

func NewClient

func NewClient(addr string) Client

func NewTlsClient

func NewTlsClient(addr string, config *tls.Config) Client

Jump to

Keyboard shortcuts

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