package
1.4.0
Repository: https://github.com/leon-yc/ggs.git
Documentation: pkg.go.dev

# Functions

Close close a client conn.
CreateClient is for to create client based on protocol and the service name.
EqualOpts equal newOpts and oldOpts.
GetClient is to get the client based on protocol, service,endpoint name.
GetClientNewFunc is to get the client.
GetFailureMap return failure map.
GetMaxIdleCon get max idle connection number you defineddefault is 512.
InstallPlugin is plugin for the new function.
SetTimeoutToClientCache set timeout to client.

# Constants

DefaultPoolSize is 500.

# Variables

ErrCanceled means Request is canceled by context management.
ErrClientNotExist happens if client do not exist.

# Structs

Options is configs for client creation.
TransportFailure is caused by client call failurefor example: resp, err = client.Do(req)if err is not nil then should wrap original error with TransportFailure.

# Interfaces

ProtocolClient is the interface to communicate with one kind of ProtocolServer, it is used in transport handler rcp protocol client,http protocol client,or you can implement your own.

# Type aliases

NewFunc is function for the client.