config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Enable          bool              `yaml:"enable"`
	Connection      server.Connection `yaml:"connection"`
	InputMailbox    *string           `yaml:"input"`
	FallbackMailbox *string           `yaml:"fallback"`
}

type Config

type Config struct {
	Accounts map[string]Account                  `yaml:"accounts"`
	Filters  map[string]map[string]filter.Filter `yaml:"filters"`
}

func NewConfig

func NewConfig() *Config

func NewConfigFromFile

func NewConfigFromFile(configPath string) (*Config, error)

Jump to

Keyboard shortcuts

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