Documentation
¶
Index ¶
Constants ¶
View Source
const (
Key = "DATACOL_ENV"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Environment ¶
type Environment string
const ( Dev Environment = "dev" QA Environment = "qa" Prod Environment = "prod" )
func FromHost ¶
func FromHost() Environment
func FromString ¶
func FromString(e string) Environment
func (Environment) DebugEnabled ¶
func (e Environment) DebugEnabled() bool
func (Environment) DevMode ¶
func (e Environment) DevMode() bool
func (Environment) IsHosted ¶
func (e Environment) IsHosted() bool
func (Environment) IsPublic ¶
func (e Environment) IsPublic() bool
func (*Environment) MarshalJSON ¶
func (e *Environment) MarshalJSON() ([]byte, error)
func (Environment) String ¶
func (e Environment) String() string
func (*Environment) UnmarshalJSON ¶
func (e *Environment) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.