Documentation
¶
Overview ¶
Package logs is a container of all structure logs that the service will emit. Log structs should leverage `logevent` annotations.
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" // DependencyDigester identifies a digester failure DependencyDigester = "digester" )
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 input provided is not valid
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
type UnknownFailure ¶
type UnknownFailure struct {
Reason string `logevent:"reason"`
Message string `logevent:"message,default=unknown-failure"`
}
UnknownFailure is logged when an unexpected error occurs
Click to show internal directories.
Click to hide internal directories.