config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Character

type Character struct {
	Director []Rule            `yaml:"director"`
	Actors   map[string][]Rule `yaml:"actors"`
	Master   []Rule            `yaml:"master,omitempty"`
	Operator []Rule            `yaml:"operator,omitempty"`
}

type Config

type Config struct {
	Character   Character
	Credentials []Credential
}

func NewConfig

func NewConfig(dir string) (*Config, error)

type Credential

type Credential struct {
	Name      string `yaml:"name"`
	Token     string `yaml:"token"`
	Character string `yaml:"character"`
	Role      string `yaml:"role"`
}

type Rule

type Rule struct {
	Key     api.Key  `yaml:"key"`
	Methods []string `yaml:"methods"`
}

Jump to

Keyboard shortcuts

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