config

package
v0.0.0-...-eddcbdb Latest Latest
Warning

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

Go to latest
Published: May 10, 2018 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 Command

type Command struct {
	Executes     []string
	NeedsRestart bool     `yaml:"needsRestart"`
	WatchStdouts []string `yaml:"watchStdouts"`
}

func (*Command) IsValid

func (c *Command) IsValid() bool

type Config

type Config struct {
	Proxy  Proxy
	Source Source
	Tasks  map[string]Task
}

func CreateConfig

func CreateConfig(yamlBuf []byte) Config

type Monitor

type Monitor struct {
	Paths   []string
	Ignores []string
}

func (*Monitor) IsValid

func (m *Monitor) IsValid() bool

type Proxy

type Proxy struct {
	Scheme      string
	Host        string
	StaticPath  string `yaml:"staticPath"`
	BrowserOpen string `yaml:"browserOpen"`
}

func (*Proxy) GetHost

func (p *Proxy) GetHost() string

func (*Proxy) GetScheme

func (p *Proxy) GetScheme() string

func (*Proxy) IsBrowserOpen

func (p *Proxy) IsBrowserOpen() bool

type Replace

type Replace struct {
	Search  string
	Replace string
	Regexp  bool
}

func (*Replace) IsValid

func (r *Replace) IsValid() bool

type Source

type Source struct {
	Scheme   string
	Host     string
	Replaces []Replace
}

func (*Source) GetScheme

func (s *Source) GetScheme() string

type Task

type Task struct {
	Commands         map[string]Command
	Monitor          Monitor
	AggregateTimeout int `yaml:"aggregateTimeout"`
}

func (*Task) GetAggregateTimeout

func (t *Task) GetAggregateTimeout() time.Duration

Jump to

Keyboard shortcuts

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