Documentation ¶ Index ¶ Constants type Service func Make(ctx context.Context, log *slog.Logger, shell, addr string, port int, ...) (*Service, error) func (s Service) HandleConnection(ctx context.Context, conn net.Conn) error func (s Service) ListenAndServe(ctx context.Context) error 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 Source Files ¶ View all Source files service.go Click to show internal directories. Click to hide internal directories.