config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.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 {
	Url   string `yaml:"url" json:"url"`
	Rooms []Room `yaml:"rooms" json:"rooms"`
}

type Reader

type Reader struct {
	ViperConfig *viper.Viper
}

func (Reader) InitConfig

func (r Reader) InitConfig(configPath string) error

func (Reader) ReadConfig

func (r Reader) ReadConfig() (Config, error)

type Room

type Room struct {
	Id    string `yaml:"id" json:"id"`
	Name  string `yaml:"name" json:"name"`
	Alias string `yaml:"alias" json:"alias"`
}

Jump to

Keyboard shortcuts

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