configs

package
v0.0.0-...-867a071 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFileName = "config.yml"
View Source
const ParentPath = "./"

Variables

View Source
var ConfigFile embed.FS

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	PrivateSecret string `yaml:"private-secret,omitempty"`
}

type Authorization

type Authorization struct {
	Type          string         `yaml:"type,omitempty"`
	Basic         *Basic         `yaml:"basic"`
	Authenticator *Authenticator `yaml:"authenticator"`
}

type Basic

type Basic struct {
	Secret string `yaml:"secret,omitempty"`
}

type Bind

type Bind struct {
	Host     string `yaml:"host,omitempty"`
	HttpPort int    `yaml:"http-port,omitempty"`
	SSHPort  int    `yaml:"ssh-port,omitempty"`
}

type Config

type Config struct {
	Log           *Log           `yaml:"log"`
	Bind          *Bind          `yaml:"bind,omitempty"`
	Authorization *Authorization `yaml:"authorization"`
}

type Log

type Log struct {
	ForceNew bool          `yaml:"force-new,omitempty"`
	Level    string        `yaml:"level,omitempty"`
	Aging    time.Duration `yaml:"aging,omitempty"`
	Colorful bool          `yaml:"colorful,omitempty"`
}

Jump to

Keyboard shortcuts

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