logs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package logs is a container of all structure logs that the service will emit. Log structs should leverage `logevent` annotations and extend the httplog.Event struct.

Index

Constants

View Source
const (
	// DependencyStorage identifies a storage failure
	DependencyStorage = "storage"

	//DependencyQueuer identifies a queuer failure
	DependencyQueuer = "queuer"

	// DependencyMarker identifies a marker failure
	DependencyMarker = "marker"

	// DependencyDiffer identifies a differ failure
	DependencyDiffer = "differ"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Conflict

type Conflict struct {
	Reason  string `logevent:"reason"`
	Message string `logevent:"message,default=conflict"`
}

Conflict is logged when the request conflicts with an existing resource

type DependencyFailure

type DependencyFailure struct {
	Dependency string `logevent:"dependency"`
	Reason     string `logevent:"reason"`
	Message    string `logevent:"message,default=dependency-failure"`
}

DependencyFailure is logged when a downstream dependency fails

type InvalidInput

type InvalidInput struct {
	Reason  string `logevent:"reason"`
	Message string `logevent:"message,default=invalid-input"`
}

InvalidInput is logged when the input provided is not valid

type NotFound

type NotFound struct {
	Reason  string `logevent:"reason"`
	Message string `logevent:"message,default=not-found"`
}

NotFound is logged when the requested resource is not found

Jump to

Keyboard shortcuts

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