Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client encapsulates the standard rpc.Client allowing for adding of aditional functions or hooking into existing rpc client functions.
func NewClient ¶
func NewClient(serviceName, network, address string, timeout time.Duration, config *tls.Config) (*Client, error)
NewClient creates and returns a new instance of 'Client' config is optional, if 'nil' it is ignored
func (*Client) ServiceName ¶
ServiceName returns the Client's service name this allow for that to be hidden away during implementation if desired.
type ClientPool ¶
type ClientPool struct {
// contains filtered or unexported fields
}
ClientPool allows for easy pooling of 'Client' connections
func NewClientPooled ¶
func NewClientPooled(serviceName, network, address string, timeout time.Duration, config *tls.Config) *ClientPool
NewClientPooled returns a new 'Client' instance backed by a pool of connections
func (*ClientPool) Get ¶
func (p *ClientPool) Get() (*Client, error)
Get Retrieves and existing connection or creates a new one if none exist
Click to show internal directories.
Click to hide internal directories.