Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrConstructorNotReg constructor is not found ErrConstructorNotReg = errors.New("constructor is not registered") )
View Source
var ( //ErrSwaggerNotExist when document is not found ErrSwaggerNotExist = errors.New("swagger doc is no exist") )
Functions ¶
This section is empty.
Types ¶
type ClosableClient ¶
type ClosableClient[T any] struct { C T // contains filtered or unexported fields }
ClosableClient closable client
func (*ClosableClient[T]) Init ¶
func (sc *ClosableClient[T]) Init(conn grpc.ClientConnInterface) error
Init initialize closable client
func (*ClosableClient[T]) MustInit ¶
func (sc *ClosableClient[T]) MustInit(conn grpc.ClientConnInterface)
MustInit panics when Init returns error
Click to show internal directories.
Click to hide internal directories.