api

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 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 {
	// contains filtered or unexported fields
}

func New

func New(sup supervisorIface, addr string) (*Server, error)

New creates a Server and binds a listener on 127.0.0.1 at the port extracted from addr (default 7777). If that port is already in use, an ephemeral port is chosen automatically.

func (*Server) Addr

func (s *Server) Addr() string

Addr returns the address the server is actually listening on, e.g. "127.0.0.1:7777".

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

Jump to

Keyboard shortcuts

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