cmux

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionMux

type ConnectionMux struct {
	// contains filtered or unexported fields
}

func NewConnectionMux

func NewConnectionMux(
	logger *zap.Logger,
	port int32,
) (result *ConnectionMux, err error)

func NewTlsConnectionMux

func NewTlsConnectionMux(
	logger *zap.Logger,
	port int32,
	tlsCert string,
	tlsKey string,
	clientsCA string,
) (result *ConnectionMux, err error)

func (*ConnectionMux) GrpcListener

func (cm *ConnectionMux) GrpcListener() (listener net.Listener, err error)

func (*ConnectionMux) HTTPListener

func (cm *ConnectionMux) HTTPListener() (listener net.Listener, err error)

func (*ConnectionMux) StartServing

func (cm *ConnectionMux) StartServing(_ context.Context) error

func (*ConnectionMux) StopServing

func (cm *ConnectionMux) StopServing(_ context.Context) error

func (*ConnectionMux) TCPListener

func (cm *ConnectionMux) TCPListener() (listener net.Listener, err error)

func (*ConnectionMux) WSListener

func (cm *ConnectionMux) WSListener() (listener net.Listener, err error)

Jump to

Keyboard shortcuts

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