config

package
v0.0.0-...-95b795d Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	FilePath           string       `yaml:"filePath"`
	Host               string       `yaml:"host"`
	DBFile             string       `yaml:"dbFile"`
	HostKeys           []string     `yaml:"hostKeys"`
	AuthorizedKeyFiles []string     `yaml:"authorizedKeys"`
	Serve              ServeConfig  `yaml:"serve"`
	Manage             ManageConfig `yaml:"manage"`
}

type Config

type Config struct {
	App  AppConfig `yaml:"app"`
	Meta Metadata  `yaml:"meta"`
}

func Load

func Load(path string) (*Config, error)

type ManageConfig

type ManageConfig struct {
	Port               int           `yaml:"port"`
	Buckets            []string      `yaml:"buckets"`
	DefaultKeyLifetime time.Duration `yaml:"defaultKeyLifetime"`
}

type Metadata

type Metadata struct {
	Version string `yaml:"version"`
}

type ServeConfig

type ServeConfig struct {
	Port int `yaml:"port"`
}

Jump to

Keyboard shortcuts

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