app

package
v0.0.0-...-a3d249e Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TrackingTag トラッキング用のタグ名のデフォルト値
	TrackingTag = "tracking.request"
	// RequestDataname トップレベルの出力オブジェクト名のデフォルト値
	RequestDataname = "RequestData"
)

Variables

View Source
var ErrLogger *log.Logger

ErrLogger 標準エラー出力にエラーを吐くために用意する

Functions

func EstablishFluent

func EstablishFluent() *fluent.Fluent

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の設定

Jump to

Keyboard shortcuts

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