listen

package
v0.0.0-...-9bc0499 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Host    string
	Port    int
	Network string
	// contains filtered or unexported fields
}

func New

func New() *Server

func (*Server) Addr

func (s *Server) Addr() net.Addr

Addr returns the bound listener address, or nil if Run has not bound a listener yet. Safe to call concurrently with Run.

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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