config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: MIT Imports: 7 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 {
	Targets    []Target
	TargetSets []TargetSet `yaml:"targetSets"`
}

Config ...

func NewConfig

func NewConfig() (*Config, error)

NewConfig ...

func (*Config) LoadConfigFile

func (c *Config) LoadConfigFile(path string) error

LoadConfigFile ...

type Target

type Target struct {
	URL              string
	Description      string
	Type             string
	Regexp           string
	MultiLine        bool
	TimeFormat       string
	TimeZone         string
	Tags             []string
	Scheme           string
	Host             string
	User             string
	Port             int
	Path             string
	SSHKeyPassphrase []byte
}

Target ...

type TargetSet added in v0.4.0

type TargetSet struct {
	URLs        []string `yaml:"urls"`
	Description string   `yaml:"description"`
	Type        string   `yaml:"type"`
	Regexp      string   `yaml:"regexp"`
	MultiLine   bool     `yaml:"multiLine"`
	TimeFormat  string   `yaml:"timeFormat"`
	TimeZone    string   `yaml:"timeZone"`
	Tags        []string `yaml:"tags"`
}

TargetSet ...

Jump to

Keyboard shortcuts

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