Documentation ¶
Index ¶
Constants ¶
View Source
const ( AttrTypeStr string = "str" AttrTypeI64 string = "i64" AttrTypeF64 string = "f64" AttrTypeBool string = "bool" )
Variables ¶
Functions ¶
func ApplyAttrs ¶
func ApplyAttrs(a Attributable, attrMap map[string]interface{})
Types ¶
type AttrDefinition ¶
type AttrDefinitionList ¶
type AttrDefinitionList []AttrDefinition
func (AttrDefinitionList) CleanUp ¶
func (l AttrDefinitionList) CleanUp() (AttrDefinitionList, []error)
func (AttrDefinitionList) Names ¶
func (l AttrDefinitionList) Names() []string
type Attributable ¶
type Attributable interface { // Str adds a tag to the message of type string. Str(key, val string) // I64 adds a tag to the message of type int64. I64(key string, val int64) // F64 adds a tag to the message of type float64. F64(key string, val float64) // Bool adds a tag to the message of type bool. Bool(key string, val bool) SetAttrs(vals map[string]interface{}) }
func SetAttr ¶
func SetAttr(a Attributable, k string, v interface{}) Attributable
Click to show internal directories.
Click to hide internal directories.