Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrCodeInvalidInput = http.StatusUnprocessableEntity ErrCodeNotFound = http.StatusNotFound ErrCodeInternal = http.StatusInternalServerError )
Error codes
Variables ¶
View Source
var (
//LostPuppyURL contains lost puppy service endpoint and it setup by cmd/puppy-server
LostPuppyURL = ""
)
View Source
var SlowRequestDuration = 2 * time.Second
Functions ¶
func LostPuppyBackend ¶
LostPuppyBackend provides information if puppy was lost
Types ¶
type Error ¶
Error wraps errors with code, message and error itself
Click to show internal directories.
Click to hide internal directories.