Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.1.3
type Client struct {
Context context.Context
Timeout time.Duration `envconfig:"CLIENT_TIMEOUT" default:"5s"`
Tracer tracing.Tracer
}
Client holds configuration for http clients
func (*Client) SetContext ¶ added in v0.1.3
SetContext will set the context on the incoming requests
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"`
Tracer
Client
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
Click to show internal directories.
Click to hide internal directories.