conf

package
v0.0.0-...-dc6c969 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	ListenPort int    `default:"5000"`
	LogLevel   string `default:"info"`
	PublicURL  string `default:"http://localhost:5000/"`
	Store      StoreConfig
}

func New

func New() (Configuration, error)

type StoreConfig

type StoreConfig struct {
	Addr                string        `default:"127.0.0.1:6379"`
	Password            string        `default:""`
	Database            int           `default:"0"`
	Flush               bool          `default:"false"`
	KeyLength           int           `default:"8"`
	MaxSecretSize       int           `default:"10485760"` // 10Mo
	MaxSecretExpiration time.Duration `default:"2678400s"` // 1 month
}

Jump to

Keyboard shortcuts

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