service

package
v0.0.0-...-e143547 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SSHAddr     string
	HTTPAddr    string
	HTTPSAddr   string
	Hostname    string
	TLSCertPath string
	TLSKeyPath  string
	HostKeyPath string
}

func (Config) IsValid

func (c Config) IsValid() error

type Service

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

func New

func New(log *slog.Logger, cfg Config) (*Service, error)

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop

func (s *Service) Stop() error

Jump to

Keyboard shortcuts

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