mux

package
v0.0.0-...-ca5e079 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func URLPrefix

func URLPrefix(prefix string) cmux.Matcher

Types

type Connection

type Connection interface {
	Serve(l net.Listener) error
}

Connection

type Mux

type Mux struct {
	cmux.CMux
	// contains filtered or unexported fields
}

Mux

func New

func New(l net.Listener) *Mux

New

func (*Mux) Register

func (m *Mux) Register(conn Connection) *registerConn

Register

func (*Mux) Serve

func (m *Mux) Serve() error

Serve

func (*Mux) ServeAndWait

func (m *Mux) ServeAndWait() error

Jump to

Keyboard shortcuts

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