config

package
v0.0.0-...-223e126 Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClientID               string        `json:"client_id" yaml:"client_id"`
	ClientSecret           string        `json:"client_secret" yaml:"client_secret"`
	PublicURLRaw           string        `json:"public_url" yaml:"public_url"`
	RedirectURL            string        `json:"redirect_url" yaml:"redirect_url"`
	StateString            string        `json:"state_string" yaml:"state_string"`
	UpdateInterval         time.Duration `json:"update_interval" yaml:"update_interval"`
	DumpInterval           time.Duration `json:"dump_interval" yaml:"dump_interval"`
	ListenAddress          string        `json:"listen_address" yaml:"listen_address"`
	LogLevel               string        `json:"log_level" yaml:"log_level"`
	DatabasePath           string        `json:"database_path" yaml:"database_path"`
	PublicURL              *url.URL      `json:"-" yaml:"-"`
	CookieName             string        `json:"cookie_name" yaml:"cookie_name"`
	CookieHostname         string        `json:"-" yaml:"-"`
	CookieSecure           bool          `json:"-" yaml:"-"`
	CookieEncryptionKey    string        `json:"cookie_encryption_key" yaml:"cookie_encryption_key"`
	CookieEncryptionCipher cipher.Block  `json:"-" yaml:"-"`
	ExperienceDescSuffix   string        `json:"" yaml:"experience_description_suffix"`
}

func ConfigFromFile

func ConfigFromFile(file string) (*Config, error)

func (*Config) String

func (c *Config) String() string

Jump to

Keyboard shortcuts

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