state

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleStateReporter

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

ConsoleStateReporter is Reporter implementation what just prints status to stdout

func NewConsoleStateReporter

func NewConsoleStateReporter(resolver *device.Resolver, in <-chan []model.Pod) *ConsoleStateReporter

NewConsoleStateReporter creates new ConsoleStateReporter

func (*ConsoleStateReporter) Start

func (r *ConsoleStateReporter) Start()

Start printing state to console

type Reporter

type Reporter interface {
	Start()
}

Reporter sends information about current status

type URLStateReporter

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

URLStateReporter is Reporter implementation what PUT data to url

func NewURLStateReporter

func NewURLStateReporter(resolver *device.Resolver, in <-chan []model.Pod, url string) *URLStateReporter

NewURLStateReporter creates new URLStateReporter

func (*URLStateReporter) Start

func (r *URLStateReporter) Start()

Start reporting state to the given url

Jump to

Keyboard shortcuts

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