Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnableToConnect is error when client is unable connect to rpc server ErrUnableToConnect = errors.New("unable to connect Talaria server") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a client for Talaria.
type Option ¶
type Option func(client *Client)
Option is a functional parameter used to configure the client.
func WithCircuit ¶
WithCircuit specifies the configuration for the circuit breaker.
func WithCredential ¶
func WithCredential(credentials credentials.TransportCredentials) Option
WithCredential specfies the configuration for the gRPC credentials based on TLS with this one being set, connection will be created in secure manner
func WithNetwork ¶
WithNetwork specifies the configuration for a connection.
func WithNonBlock ¶
func WithNonBlock() Option
Click to show internal directories.
Click to hide internal directories.