listener

package
v0.5.0-dev Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(conf Config, global *state.Store, logger *slog.Logger) (service.Service, error)

Types

type Config

type Config struct {
	Name        string
	Network     string // "tcp" or "udp"
	Addr        string
	HandlerSpec string
	ReadTimeout time.Duration // idle timeout applied to each connection
	TLS         *tlsprovider.Config
	Capture     bool
	// BaseDir is the directory relative handler script paths resolve against.
	BaseDir string
	// CaptureDir overrides the base directory for capture files.
	// When empty, capture.DefaultDir is used.
	CaptureDir string
}

func (Config) Validate

func (c Config) Validate() error

Jump to

Keyboard shortcuts

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