server

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StoreDirFromEnvPrefixed

func StoreDirFromEnvPrefixed(prefix string) (string, error)

Types

type Option

type Option func(*serverConfig) error

func ClientsAuthenticator

func ClientsAuthenticator(clientsAuth control.ClientAuthenticator) Option

func ClientsIngress

func ClientsIngress(icfg control.Ingress) Option

func ClientsTokens

func ClientsTokens(tokens ...string) Option

func Logger

func Logger(logger *slog.Logger) Option

func RelayIngress

func RelayIngress(icfg relay.Ingress) Option

func StoreDir

func StoreDir(dir string) Option

func StoreDirFromEnv

func StoreDirFromEnv() Option

type Server

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

func New

func New(opts ...Option) (*Server, error)

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

func (*Server) Status

func (s *Server) Status(ctx context.Context) (ServerStatus, error)

type ServerStatus

type ServerStatus struct {
	Control control.Status `json:"control"`
	Relay   relay.Status   `json:"relay"`
}

Jump to

Keyboard shortcuts

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