Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthConfig ¶
type AuthConfig struct {
Enabled bool `json:"enabled"`
KeyNameHeaderName string `json:"keyNameHeaderName"`
KeyValueHeaderName string `json:"keyValueHeaderName"`
RemoveKeyNameOnSuccess bool `json:"removeKeyNameOnSuccess"`
RemoveKeyValueOnSuccess bool `json:"removeKeyValueOnSuccess"`
ErrorResponseType string `json:"errorResponseType"`
ErrorMessage string `json:"errorMessage"`
Keys []ServiceKey `json:"keys,omitempty"`
}
type Config ¶
type Config struct {
Trace TraceConfig `json:"trace"`
Auth AuthConfig `json:"auth"`
}
func CreateConfig ¶
func CreateConfig() *Config
type ServiceKey ¶
type TraceConfig ¶
type X9GGTraefikMiddleware ¶
type X9GGTraefikMiddleware struct {
// contains filtered or unexported fields
}
func (*X9GGTraefikMiddleware) GenerateTraceId ¶
func (m *X9GGTraefikMiddleware) GenerateTraceId() string
func (*X9GGTraefikMiddleware) ServeHTTP ¶
func (m *X9GGTraefikMiddleware) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.