config

package
v0.0.0-...-cb9b8c6 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2016 License: GPL-3.0 Imports: 1 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 {
	Common struct {
		LockFile string `toml:"lock_file"`
	}
	Users  map[string]User  `toml:"user"`
	Groups map[string]Group `toml:"group"`
}

func Load

func Load(path string) (*Config, error)

type Group

type Group struct {
	Allow []string `tomls:"groups"`
}

type User

type User struct {
	Allow  []string `toml:"allow"`
	Groups []string `toml:"groups"`
}

Jump to

Keyboard shortcuts

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