Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultsAws = Aws{ Use: false, Endpoint: "http://localhost:9200", Service: "es", } EnvAws = Aws{ Use: hasEnvVar("AWS_SIGNING"), Endpoint: os.Getenv("AWS_ENDPOINT"), Service: os.Getenv("AWS_SERVICE"), } )
View Source
var ( DefaultCurl = Curl{ Method: "GET", Headers: http.Header{ "Content-Type": []string{"application/json"}, }, Path: "/", Aws: DefaultsAws, } EnvCurl = Curl{ Aws: EnvAws, } )
View Source
var ( DefaultReverseProxy = ReverseProxy{ Port: 9200, Aws: DefaultsAws, } EnvReverseProxy = ReverseProxy{ Aws: EnvAws, } )
Functions ¶
func HclUnmarshalDir ¶
Types ¶
type Aws ¶
type Aws struct {
Use bool `hcl:"enabled"`
Service string `hcl:"service"`
Endpoint string `hcl:"endpoint"`
}
func (Aws) EndpointUrl ¶
type Curl ¶
type Curl struct {
Data string `hcl:"-"`
Method string `hcl:"-"`
Headers http.Header `hcl:"-"`
Path string `hcl:"-"`
Aws Aws `hcl:"aws"`
Debug bool `hcl:"-"`
}
func (Curl) RequestBody ¶
func (Curl) RequestUrl ¶
type ReverseProxy ¶
func MergeReverseProxy ¶
func MergeReverseProxy(cfgs ...ReverseProxy) ReverseProxy
Click to show internal directories.
Click to hide internal directories.