watchdog

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigPath

func ConfigPath(appDir string) string

Types

type Config

type Config struct {
	Version     string `toml:"version"`
	ProcessType string `toml:"process_type"`
}

func DefaultConfig

func DefaultConfig() Config

func ParseConfig

func ParseConfig(reader io.Reader) (Config, error)

type Contributor

type Contributor struct {
	// contains filtered or unexported fields
}

func NewContributor

func NewContributor(log logger.Logger, httpClient HttpClient) *Contributor

func (*Contributor) Contribute

func (l *Contributor) Contribute(lyrs layers.Layers, conf Config) (*layers.Layer, error)

type HttpClient

type HttpClient interface {
	Get(url string) (*http.Response, error)
}

Jump to

Keyboard shortcuts

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