Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NeedReconnect ¶
func NewClient ¶
func NewClient[T any](address string, register func(grpc.ClientConnInterface) T, options ...grpc.DialOption) (conn T, err error)
func NewServer ¶
func NewServer(address string, register ServerRegister, options ...grpc.ServerOption) (err error)
Types ¶
type ClientRegister ¶
type ClientRegister func(conn *grpc.ClientConn)
type ServerRegister ¶
Click to show internal directories.
Click to hide internal directories.