config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func Set

func Set(c *Config)

Types

type Config

type Config struct {
	Settings    *Settings
	Tunnels     []*Tunnel
	EntryPoints []*Tunnel
	Log         *config.LogConfig
}

func Global

func Global() *Config

func (*Config) Load

func (c *Config) Load() error

func (*Config) Write

func (c *Config) Write() error

type Settings

type Settings struct {
	Lang  string
	Theme string
}

type Tunnel

type Tunnel struct {
	ID        string
	Name      string
	Type      string
	Endpoint  string
	Hostname  string `yaml:",omitempty"`
	Username  string `yaml:",omitempty"`
	Password  string `yaml:",omitempty"`
	EnableTLS bool   `yaml:"enableTLS,omitempty"`
	Keepalive bool   `yaml:",omitempty"`
	TTL       int    `yaml:"ttl,omitempty"`

	Favorite bool
	Closed   bool
}

Jump to

Keyboard shortcuts

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