utils

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeQRCodeURL

func MakeQRCodeURL(data string) string

func NewListener

func NewListener(bindTo string, bufferSize int) (net.Listener, error)

func ReadConfig

func ReadConfig(path string) (*config.Config, error)

func RootContext

func RootContext() context.Context

Types

type Listener

type Listener struct {
	net.Listener
}

func (Listener) Accept

func (l Listener) Accept() (net.Conn, error)

type MultiListener added in v1.8.0

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

MultiListener fans-in Accept calls from multiple underlying listeners.

func NewMultiListener added in v1.8.0

func NewMultiListener(listeners ...net.Listener) *MultiListener

func (*MultiListener) Accept added in v1.8.0

func (ml *MultiListener) Accept() (net.Conn, error)

func (*MultiListener) Addr added in v1.8.0

func (ml *MultiListener) Addr() net.Addr

func (*MultiListener) Close added in v1.8.0

func (ml *MultiListener) Close() error

Jump to

Keyboard shortcuts

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