util

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(tcpAddress, wssAddress, serverName string, buffSize int) *serverCfg

Types

type ClientCfg

type ClientCfg struct {
	// ConnectTimeout rsocket connect timeout
	ConnectTimeout time.Duration

	// KeepaliveInterval rsocket keepalive interval
	KeepaliveInterval time.Duration

	// KeepaliveLifetime rsocket keepalive life time
	KeepaliveLifetime time.Duration

	Setup payload.Payload

	Socket rsocket.ClientSocketAcceptor

	OnClose   func(err error)
	OnConnect func(rsocket.Client, error)
}

ClientCfg client config

func (*ClientCfg) Build

func (t *ClientCfg) Build() rsocket.ClientBuilder

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL