wss

package
v2.0.130 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 19 Imported by: 4

Documentation

Index

Constants

View Source
const Type = "wss"

Variables

This section is empty.

Functions

func ClientTLSConfig added in v2.0.87

func ClientTLSConfig(u url.URL, i *identity.TokenId) *tls.Config

func Dial

func Dial(name string, u url.URL, i *identity.TokenId, _ time.Duration, _ transport.Configuration) (transport.Conn, error)

func DialWithLocalBinding

func DialWithLocalBinding(name string, u url.URL, localBinding string, i *identity.TokenId, timeout time.Duration, tcfg transport.Configuration) (transport.Conn, error)

func Listen

func Listen(bindAddress string, name string, i *identity.TokenId, acceptF func(transport.Conn), tcfg transport.Configuration) (io.Closer, error)

Types

type AddressParser

type AddressParser struct{}

func (AddressParser) Parse

func (ap AddressParser) Parse(s string) (transport.Address, error)

type Config added in v2.0.87

type Config struct {
	WriteTimeout      time.Duration
	ReadTimeout       time.Duration
	IdleTimeout       time.Duration
	PongTimeout       time.Duration
	PingInterval      time.Duration
	HandshakeTimeout  time.Duration
	ReadBufferSize    int
	WriteBufferSize   int
	EnableCompression bool
	Identity          identity.Identity
}

func NewDefaultConfig added in v2.0.87

func NewDefaultConfig() *Config

func (*Config) Dump added in v2.0.87

func (self *Config) Dump(name string) string

func (*Config) Load added in v2.0.87

func (self *Config) Load(data map[interface{}]interface{}) error

Jump to

Keyboard shortcuts

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