config

package
v0.0.0-...-79b0fad Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: GPL-3.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Node     nodeConfig   `toml:"node"`
	Schedule []planConfig `toml:"schedule"`
	Tasks    []taskConfig `toml:"tasks"`
}

Config represents a genernal config file

func (*Config) CheckConfig

func (c *Config) CheckConfig() error

CheckConfig checks configuration's legality.

func (*Config) LoadConfig

func (c *Config) LoadConfig(s string) error

LoadConfig loads configuration from string.

func (*Config) Marshal

func (c *Config) Marshal() ([]byte, error)

Marshal returns the JSON encoding of a node info.

func (*Config) String

func (c *Config) String() string

Jump to

Keyboard shortcuts

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