server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Config  Config
	Watcher *gitwatch.Session
	Vault   *api.Client
	// contains filtered or unexported fields
}

App stores application state

func Initialise

func Initialise(config Config) (app *App, err error)

Initialise creates a new instance and prepares it for starting

func (*App) Start

func (app *App) Start()

Start will start the application and block until graceful exit or fatal error

func (*App) Stop

func (app *App) Stop()

Stop gracefully closes the application

type Config

type Config struct {
	Targets        []string      `split_words:"true" required:"true"`
	CheckInterval  time.Duration `split_words:"true" required:"true"`
	CacheDirectory string        `split_words:"true" required:"true"`
	VaultAddress   string        `split_words:"true" required:"true"`
	VaultToken     string        `split_words:"true" required:"true"`
	VaultNamespace string        `split_words:"true" default:"machinehead"`
}

Config defines configuration fields

Jump to

Keyboard shortcuts

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