srv

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Protocol = "tcp"

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func Make

func Make(
	ctx context.Context,
	log *slog.Logger,
	shell, addr string,
	port int,
	expo map[string]string,
) (*Service, error)

func (Service) HandleConnection

func (s Service) HandleConnection(ctx context.Context, conn net.Conn) error

func (Service) ListenAndServe

func (s Service) ListenAndServe(ctx context.Context) error

Jump to

Keyboard shortcuts

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