mygrpc

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 7 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoReConn

type AutoReConn struct {
	MyGrpc

	Ready     chan bool
	Done      chan bool
	Reconnect chan bool
	// contains filtered or unexported fields
}

func NewAutoReconn

func NewAutoReconn(address string) *AutoReConn

func (*AutoReConn) Connect

func (my *AutoReConn) Connect() (MyGrpc, error)

func (*AutoReConn) IsValid

func (my *AutoReConn) IsValid() bool

func (*AutoReConn) Process

func (my *AutoReConn) Process(f GetGrpcFunc)

type GetGrpcFunc

type GetGrpcFunc func(myGrpc MyGrpc) error

type MyGrpc

type MyGrpc interface {
	grpc.ClientConnInterface
	Close() error
	IsValid() bool
	WaitUntilReady() bool
}

func New

func New(address string) (MyGrpc, error)

Jump to

Keyboard shortcuts

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