config

package
v0.0.0-...-1599866 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: GPL-3.0 Imports: 8 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 {
	Data Data
	// contains filtered or unexported fields
}

Config represents the path, the data and the hash of the currently saved data

func NewConfig

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

NewConfig returns a new Config struct

func (*Config) Save

func (c *Config) Save() error

Save saves the config to the file

type Data

type Data struct {
	Userconfig *user.Users         `json:"users"`
	WAClients  *waclient.WAClients `json:"clients"`
}

Data represents the configuration itself

Jump to

Keyboard shortcuts

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