adapters

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogEvent

type LogEvent struct {
	Name        string    `json:"name"`
	StartDate   time.Time `json:"start_date"`
	EndDate     time.Time `json:"end_date"`
	Took        string    `json:"took"`
	Result      string    `json:"result"`
	StatusCode  int       `json:"status_code"`
	IsError     bool      `json:"is_error"`
	ResultDebug string    `json:"result_debug"`
}

LogEvent defines an event used for logging purposes

type Reporter

type Reporter interface {
	StartReporting() error
	StopReporting() error
	SupportsLogging() bool

	LogResult(l *LogEvent) error
}

Reporter starts a new reporting agent

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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