config

package
v0.0.0-...-4bf0d0c Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

README

Notes

This package is used to parse the config file. The config file is written in TOML and uses BurntSushi's toml parser

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigGroup

func NewConfigGroup() configGroup

func NewConfigUser

func NewConfigUser() configUser

Types

type Config

type Config struct {
	Debug      bool
	Groups     []configGroup
	Users      []configUser
	Fruits     []configFruit
	Vegetables []configVegetable
	LDAPClient configLDAPClient
	LDAPServer configLDAPServer
	WebServer  configWebServer
}

func NewConfig

func NewConfig(configFile string) (cfg Config, err error)

func (Config) Dump

func (cfg Config) Dump()

Jump to

Keyboard shortcuts

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