HostEnvironment
Interface
type HostEnvironment interface{}Methods
method
IsDevelopment Checks if the environment is Development.
IsDevelopment() (bool, error)Returns
(bool, error) True if running in Development environment.
Returns (bool, error).
method
IsEnvironment Checks if the environment matches the specified name.
IsEnvironment(environmentName string) (bool, error)Parameters
environmentName stringThe environment name to compare against.Returns
(bool, error) True if the environment matches the specified name.
Returns (bool, error).
method
IsProduction Checks if the environment is Production.
IsProduction() (bool, error)Returns
(bool, error) True if running in Production environment.
Returns (bool, error).
method
IsStaging Checks if the environment is Staging.
IsStaging() (bool, error)Returns
(bool, error) True if running in Staging environment.
Returns (bool, error).
Applies to
This interface applies to the following types: