Documentation ¶
Index ¶
- Variables
- func Dial(addr string, opts ...Option) (gira.GatewayClient, error)
- type ClientConn
- type Option
- func WithContext(ctx context.Context) Option
- func WithDebugMode(debug bool) Option
- func WithDialTimeout(timeout time.Duration) Option
- func WithDictionary(dict map[string]uint16) Option
- func WithHandshakeTimeout(timeout time.Duration) Option
- func WithHandshakeValidator(fn func([]byte) error) Option
- func WithHeartbeatInterval(d time.Duration) Option
- func WithIsWebsocket(enableWs bool) Option
- func WithRSAPublicKey(keyFile string) Option
- func WithRecvBacklog(v int) Option
- func WithRecvBuffSize(v int) Option
- func WithSendBacklog(v int) Option
- func WithServerAdd(addr string) Option
- func WithTSLConfig(certificate, key string) Option
- func WithTSLInsecure(insecureSkipVerify bool) Option
- func WithWSPath(path string) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCloseClosedSession = errors.New("close closed session") ErrBrokenPipe = errors.New("broken low-level pipe") ErrHandshake = errors.New("handshake failed") ErrHandshakeAck = errors.New("handshake ack failed") ErrHandshakeTimeout = errors.New("handshake timeout failed") ErrHeartbeatTimeout = errors.New("heartbeat timeout") ErrDialTimeout = errors.New("dial timeout") ErrDialInterrupt = errors.New("dial interrupt") ErrInvalidPacket = errors.New("invalid packet") )
Errors that could be occurred during message handling.
Functions ¶
Types ¶
type ClientConn ¶
type ClientConn struct {
// contains filtered or unexported fields
}
type Option ¶
type Option func(conn *ClientConn)
func WithContext ¶
func WithDebugMode ¶
func WithDialTimeout ¶
func WithDictionary ¶
func WithHandshakeTimeout ¶
func WithHandshakeValidator ¶
func WithHeartbeatInterval ¶
func WithIsWebsocket ¶
func WithRSAPublicKey ¶
func WithRecvBacklog ¶
func WithRecvBuffSize ¶
func WithSendBacklog ¶
func WithServerAdd ¶
func WithTSLConfig ¶
func WithTSLInsecure ¶
func WithWSPath ¶
Click to show internal directories.
Click to hide internal directories.