package
0.0.14
Repository: https://github.com/easeq/go-service.git
Documentation: pkg.go.dev

# Functions

NewGrpc creates a new gRPC client.
NewInitializer returns a new JetStream Initialiazer.
WithCloseFunc passes the callback function to close the gRPC connection in the pool.
WithFactory defines the client connection creation factory.
WithRegistry passes services registry externally.

# Variables

ErrInvalidAddress returned when the address provided is invalid.
ErrInvalidDialOptions returned when the dial options provided are not valid.
ErrInvalidFactoryConn returned when factory conn is invalid.
ErrInvalidGrpcClient returned when type assertion to GrpcClient fails.
ErrInvalidRegistry returned when the registry provided does not implement regsitry.ServiceRegsitry.
ErrInvalidStreamDescription returned when the variable passed is not of grpc.StreamDesc type.
ErrTooFewArgs returned when the args provided is less the args required.
ErrTooFewFactoryArgs returned when the args provided is less the args required.

# Structs

Grpc client that holds the reference to the pool, along with other configuration required to create the pool It holds a reference to the service registry used by the service.
GrpcStreamClient is the gRPC client that allows streaming.
No description provided by the author

# Type aliases

ClientOption to pass as arg while creating new service.