Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TrackingTag トラッキング用のタグ名のデフォルト値 TrackingTag = "tracking.request" // RequestDataname トップレベルの出力オブジェクト名のデフォルト値 RequestDataname = "RequestData" )
Variables ¶
View Source
var ErrLogger *log.Logger
ErrLogger 標準エラー出力にエラーを吐くために用意する
Functions ¶
func EstablishFluent ¶
EstablishFluent Try to establish connection to fluentd
Types ¶
type EnvStruct ¶
type EnvStruct struct { Logger *zap.Logger Fluent *fluent.Fluent ServerHost *string ServerPort *int Tag *string ObjectName *string FluentHost *string FluentPort *int CORSConfFile *string EncodeTimestamp *bool }
EnvStruct アプリケーション実行においてpackage-global
var Env *EnvStruct
Env globalレベルのObjectTransportを行うためのもの
type SentinelEnv ¶
type SentinelEnv struct { AllowOrigins []string `json:"allow_origins"` AllowAllOrigin bool `json:"allows_all_origin"` }
SentinelEnv Configファイルに記載するCORSの設定
Click to show internal directories.
Click to hide internal directories.