Documentation ¶
Index ¶
Constants ¶
View Source
const SectionKey = "emf"
"emf" : { "service_address": "udp://127.0.0.1:25888" }
View Source
const SectionKeyDataFormat = "data_format"
View Source
const SectionKeyNameOverride = "name_override"
View Source
const SectionKeyServiceAddress = "service_address"
View Source
const SectionKeyStructuredLog = "structuredlog"
"structuredlog" : { "service_address": "udp://127.0.0.1:25888" }
Variables ¶
View Source
var ChildRule = map[string]translator.Rule{}
Functions ¶
func GetCurPath ¶
func GetCurPath() string
func RegisterRule ¶
func RegisterRule(fieldname string, r translator.Rule)
Types ¶
type DataFormat ¶
type DataFormat struct { }
func (*DataFormat) ApplyRule ¶
func (obj *DataFormat) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
type NameOverride ¶
type NameOverride struct { }
func (*NameOverride) ApplyRule ¶
func (obj *NameOverride) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
type ServiceAddress ¶
type ServiceAddress struct { }
func (*ServiceAddress) ApplyRule ¶
func (obj *ServiceAddress) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
type StructuredLog ¶
type StructuredLog struct { }
func (*StructuredLog) ApplyRule ¶
func (obj *StructuredLog) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
Click to show internal directories.
Click to hide internal directories.