Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllEnvironments = []Environment{ EnvProduction, EnvDevelopment, EnvTest, }
AllEnvironments a collection of all valid environments
View Source
var ErrInvalidEnvironment = fail.New("supplied environment is not supported")
ErrInvalidEnvironment for when an environment is not defined in our app
View Source
var ErrNotFound = sql.ErrNoRows
ErrNotFound for when an entity could not be found
Functions ¶
Types ¶
type Environment ¶
type Environment string
Environment of the app
const ( EnvProduction Environment = "production" EnvDevelopment Environment = "development" EnvTest Environment = "test" )
Environment enum
func (Environment) ShouldSecure ¶
func (env Environment) ShouldSecure() bool
ShouldSecure indicates wether or not the environment needs to have security enforced
func (Environment) Validate ¶
func (env Environment) Validate() error
Validate wether or the the environment is a valid one
type Resume ¶
type Resume struct { Slug string `json:"slug" db:"slug"` Body string `json:"body" db:"body"` Enabled bool `json:"enabled" db:"enabled"` }
Resume is a container for a JSON resume blob
Click to show internal directories.
Click to hide internal directories.