config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 License: AGPL-3.0 Imports: 3 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 {
	Matrix   MatrixConfig   `yaml:"matrix"`
	Feeds    []Feed         `yaml:"feeds"`
	Database DatabaseConfig `yaml:"database"`
}

func Load

func Load(filePath string) (cfg Config, err error)

type DatabaseConfig

type DatabaseConfig struct {
	Path string `yaml:"path,omitempty"`
}

type Feed

type Feed struct {
	URL          string `yaml:"url"`
	EventType    string `yaml:"event_type"`
	PollInterval int64  `yaml:"poll_interval"`
}

type MatrixConfig

type MatrixConfig struct {
	Homeserver  string `yaml:"homeserver"`
	AccessToken string `yaml:"access_token"`
	MXID        string `yaml:"mxid"`
}

Jump to

Keyboard shortcuts

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