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

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