server

package
v0.2.0-dev.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidPortRange = errors.New("invalid port range")

Functions

func NewControlStream

func NewControlStream(session *session, str *smux.Stream) api.ControlStream

func NewPort

func NewPort(session *session, id string, assignedPort int) *port

func NewPortProvider

func NewPortProvider(portMin, portMax int) (api.PortProvider, error)

func NewServer

func NewServer(listenAddress string, options ...ServerOption) (api.Server, error)

func NewSession

func NewSession(srv *server, sess *smux.Session) *session

Types

type ListenerWrapperFunc

type ListenerWrapperFunc func(l net.Listener) (net.Listener, error)

type ServerOption

type ServerOption func(*server)

func ServerWithKeepaliveTimeout

func ServerWithKeepaliveTimeout(timeout time.Duration) ServerOption

func ServerWithListenerWrapperFunc

func ServerWithListenerWrapperFunc(listenerWrapperFunc ListenerWrapperFunc) ServerOption

func ServerWithLogger

func ServerWithLogger(logger logr.Logger) ServerOption

func ServerWithPortProvider

func ServerWithPortProvider(provider api.PortProvider) ServerOption

func ServerWithSessionTimeout

func ServerWithSessionTimeout(timeout time.Duration) ServerOption

Jump to

Keyboard shortcuts

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