package
Version:
v0.0.0-...-cf576ff
Opens a new window with list of versions in this module.
Published: Jul 29, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
ErrCodeInvalidInput = 400
ErrCodeNotFound = 404
ErrCodeInternal = 500
)
Error codes
RestBackend serves puppy over http
type Error struct {
Message string
Code int
}
Error wrapps errors with code, message and error itself
Errorf creates a new Error with formatting
Error returns error as a string
type Puppy struct {
ID int `json:"id"`
Value int `json:"value"`
Breed string `json:"breed"`
Colour string `json:"colour"`
}
Puppy contains information about single puppy
Storer interface for Store implementations
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.