config

package
v0.0.0-...-db96cfc Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessRule

type AccessRule struct {
	Pattern string `yaml:"pattern"`
	Token   string `yaml:"token"`
}

type AccessRules

type AccessRules []AccessRule

type Config

type Config struct {
	Server      Server      `yaml:"server"`
	Provider    Provider    `yaml:"provider"`
	AccessRules AccessRules `yaml:"access_rules"`
}

type Loader

type Loader interface {
	Load() (*Config, error)
}

func NewFileLoader

func NewFileLoader(fs afero.Fs, filename string) Loader

type Provider

type Provider struct {
	Type      string            `yaml:"type"`
	Variables map[string]string `yaml:"variables"`
}

type Server

type Server struct {
	Addr string `yaml:"addr"`
}

Jump to

Keyboard shortcuts

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