json

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: AGPL-3.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const Provider = "json"

Provider is the name

Variables

This section is empty.

Functions

This section is empty.

Types

type Poster

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

Poster prints json comments to stdout

func NewPoster

func NewPoster(w io.Writer) *Poster

NewPoster creates a new json poster for stdout

func (*Poster) Post

func (p *Poster) Post(ctx context.Context, e lookout.Event,
	aCommentsList []lookout.AnalyzerComments, safe bool) error

Post prints json comments to stdout

func (*Poster) Status added in v0.0.3

func (p *Poster) Status(ctx context.Context, e lookout.Event,
	status lookout.AnalysisStatus) error

Status prints the new status to the log

type Watcher

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

Watcher watches for new json events in the console

func NewWatcher

func NewWatcher(reader io.Reader) (*Watcher, error)

NewWatcher returns a new json console watcher

func (*Watcher) Watch

func (w *Watcher) Watch(ctx context.Context, cb lookout.EventHandler) error

Watch reads json from stdin and calls cb for each new event

Jump to

Keyboard shortcuts

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