Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
EvalContext *hcl.EvalContext
Payload map[string]interface{}
Headers map[string]string
Params map[string]string
Debug bool
}
func NewContext ¶
func NewContext() *Context
func (*Context) HeaderFunc ¶
func (*Context) PayloadFunc ¶
type HooksConfig ¶
type HooksConfig struct {
Hooks []Hook `hcl:"hook,block"`
}
type PostExecConfig ¶
type PostExecConfig struct {
Response *Response `hcl:"response,block"`
}
type PreExecConfig ¶
type Response ¶
type Response struct {
ResponseSuccess *ResponseSuccess `hcl:"success,block"`
ResponseError *ResponseError `hcl:"error,block"`
ResponseUnsatisfied *ResponseUnsatisfied `hcl:"unsatisfied,block"`
}
type ResponseError ¶
type ResponseSuccess ¶
type ResponseUnsatisfied ¶
type Service ¶
type Service struct {
Debug *bool `hcl:"debug"`
Verbose *bool `hcl:"verbose"`
IP *string `hcl:"ip"`
Port *int `hcl:"port"`
Secure *bool `hcl:"secure"`
User *string `hcl:"user"`
Group *string `hcl:"group"`
LogFile *string `hcl:"logfile"`
NoPanic *bool `hcl:"nopanic"`
PIDFile *string `hcl:"pidfile"`
HTTPMethods *[]string `hcl:"http_methods"`
EnableXRequestID *bool `hcl:"enable_xrequestid"`
XRequestIDLimit *int `hcl:"xrequestid_limit"`
ProxyProtocl *bool `hcl:"proxy_protocol"`
Hostname *string `hcl:"hostname"`
TLSCertificate *string `hcl:"tls_certificate"`
TLSCertificateKey *string `hcl:"tls_certificate_key"`
TLSProtocols *[]string `hcl:"tls_protocols"`
TLSCiphers *[]string `hcl:"tls_ciphers"`
RawHooks hcl.Body `hcl:",remain"` // See https://hcl.readthedocs.io/en/latest/go_decoding_gohcl.html#partial-decoding
Hooks []Hook
}
Click to show internal directories.
Click to hide internal directories.