Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Listen string `envconfig:"HTTP_PORT" default:":8080"`
LogLevel string `envconfig:"LOG_LEVEL" default:"debug"`
OriginHost string `envconfig:"ORIGIN_HOST"`
Hostname string `envconfig:"HOSTNAME" default:"localhost"`
Client HTTPClient
Propeller
}
Config holds all the configuration for this service
func LoadConfig ¶
LoadConfig loads the configuration with environment variables injected
func (Config) IsLocalHost ¶
IsLocalHost returns true if env is localhost
type HTTPClient ¶
HTTPClient will issue requests to the manifest
func (HTTPClient) New ¶
func (h HTTPClient) New() *http.Client
New creates a new instance of the HTTP Client
Click to show internal directories.
Click to hide internal directories.