config

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGlobalManager

func NewGlobalManager() (*platformconfig.Manager[GlobalConfig], error)

NewGlobalManager creates a new global configuration manager

func NewTunnelManager

func NewTunnelManager(path string) (*platformconfig.Manager[TunnelConfig], error)

NewTunnelManager creates a new tunnel configuration manager

Types

type GlobalConfig

type GlobalConfig struct {
	Cloudflare struct {
		Token string `yaml:"token" validate:"required"`
	} `yaml:"cloudflare"`
}

GlobalConfig represents the global application configuration

type TunnelConfig

type TunnelConfig struct {
	Tunnel  *domain.Tunnel  `yaml:"tunnel" validate:"required"`
	Ingress *domain.Ingress `yaml:"ingress" validate:"required"`
	Access  *domain.Access  `yaml:"access,omitempty"`
}

TunnelConfig represents tunnel-specific configuration

func ExampleTunnelConfig

func ExampleTunnelConfig() (*TunnelConfig, error)

Jump to

Keyboard shortcuts

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