feedback

package
v0.0.0-...-58c3220 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CfgFluentdHost        = "fluentd.host"
	CfgFluentdPort        = "fluentd.port"
	CfgProhibitedHeaders  = "prohibited_headers"
	CfgRequestResponseTag = "tags.request_response"
	CfgResponseBodyTag    = "tags.response_body"
	CfgFeedbackTag        = "tags.feedback"
)
View Source
const (
	ModelNameHeaderKey               = "model-name"
	ModelVersionHeaderKey            = "model-version"
	OdahuFlowRequestIdHeaderKey      = "request-id"
	HttpMethodHeaderKey              = ":method"
	OriginalUriHeaderKey             = "x-original-uri"
	StatusHeaderKey                  = ":status"
	ForwardedHostHeaderKey           = "x-forwarded-host"
	EnvoyInternalRoutingHeader       = "x-envoy-decorator-operation"
	EnvoyInternalRoutingHeaderPrefix = "istio-ingressgateway"
)

Variables

View Source
var (
	CfgFile string
)

Functions

func InitBasicParams

func InitBasicParams(cmd *cobra.Command)

func PanicIfError

func PanicIfError(err error)

Types

type DataLogging

type DataLogging interface {
	Post(tag string, message interface{}) error
	Close() error
}

func NewDataLogger

func NewDataLogger() (DataLogging, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL