util

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAttribute

func DeleteAttribute(e *ce.Event, attr string) error

func DeleteData

func DeleteData(data interface{}, path string) error

func LookupAttribute

func LookupAttribute(event ce.Event, attr string) (interface{}, bool)

LookupAttribute lookup event attribute value by attribute name.

func LookupData

func LookupData(data interface{}, path string) (interface{}, error)

LookupData lookup event data value by JSON path.

func SetAttribute

func SetAttribute(e *ce.Event, attr string, value interface{}) error

func SetData

func SetData(data interface{}, path string, value interface{}) error

SetData set value to data path, now data must is map, not support array.

Types

This section is empty.

Jump to

Keyboard shortcuts

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