znet

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2018 License: Apache-2.0 Imports: 6 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 {
	Rooms    []Room `yaml:"rooms"`
	Endpoint string `yaml:"endpoint"`
}

func LoadConfig

func LoadConfig(file string) (*Config, error)

func (*Config) Room

func (c *Config) Room(name string) (Room, error)

type Room

type Room struct {
	Name string `yaml:"name"`
	IDs  []int  `yaml:"ids"`
}

Jump to

Keyboard shortcuts

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