Documentation
¶
Overview ¶
Package pastes implements business logic.
Index ¶
Constants ¶
View Source
const ( GCItems = 5 GCDays = 3 GCSchedule = "@hourly" )
Predefined consts identify PGC behaviour.
Variables ¶
View Source
var ( ErrNotFound = errors.New("Paste not found") ErrInvalidID = errors.New("Paste UUID is invalid") ErrNotEnoughDataForGC = errors.New("Not enough data for GC") ErrStorageNotReady = errors.New("Storage not ready") )
Predefined errors identify expected failure conditions.
Functions ¶
This section is empty.
Types ¶
type Paste ¶
type Paste struct { ID string `json:"id"` Name string `json:"name" binding:"required"` Created time.Time `json:"created"` Body string `json:"body" binding:"required"` }
Paste is an item we store.
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.