server

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 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 ClientsEndpointExpiry added in v0.15.0

func ClientsEndpointExpiry(d time.Duration) 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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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