config

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: MIT Imports: 2 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 {
	Address  string            `toml:"address"`
	Storage  string            `toml:"storage"`
	Log      string            `toml:"log"`
	Interval int               `toml:"interval"`
	LogLevel string            `toml:"logLevel"`
	Host     map[string]Host   `toml:"host"`
	Static   map[string]Static `toml:"static"`
}

type Host

type Host struct {
	From string `toml:"from"`
	To   string `toml:"to"`
}

type HostSlice

type HostSlice []Host

func (*HostSlice) Set

func (p *HostSlice) Set(value string) error

func (*HostSlice) String

func (p *HostSlice) String() string

type Static

type Static struct {
	Name   string
	Repo   string `toml:"repo"`
	Branch string `toml:"branch"`
	Path   string
	EID    cron.EntryID
}

type StaticSlice

type StaticSlice []Static

func (*StaticSlice) Set

func (s *StaticSlice) Set(value string) error

func (*StaticSlice) String

func (s *StaticSlice) String() string

Jump to

Keyboard shortcuts

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