Documentation
¶
Index ¶
- Constants
- Variables
- func AdjustMaskEvalArgs(fn string, args []string, keypatch map[string]string) (string, []string, bool)
- func CounterAdd(ns, key, value ast.Value) (output ast.Value, err error)
- func CounterDelete(ns, key ast.Value) (output ast.Value, err error)
- func CounterGet(ns, key ast.Value) (output ast.Value, err error)
- func DeRegisterTengoCustomFunc(name string)
- func DeRegisterTengoCustomFuncs(names []string)
- func DeleteExprCustomFunc(name string)
- func DeleteExprCustomFuncs(names []string)
- func ExprCompiledCall(code string, env map[string]interface{}) (interface{}, error)
- func ExprNonCompiledEval(code string, env map[string]interface{}) (interface{}, error)
- func GaugeAdd(ns, key, value, duration ast.Value) (output ast.Value, err error)
- func GaugeDelete(ns, key ast.Value) (output ast.Value, err error)
- func GaugeGet(ns, key ast.Value) (output ast.Value, err error)
- func JSONShuffle(ns string, model string, input *ast.Term) (*ast.Term, error)
- func PatchObject(keypatch map[string]string, target *ast.Term, et *edittree.EditTree, ...)
- func RegisterExprCustomFunc(name string, fn interface{})
- func RegisterExprCustomFuncs(fns map[string]interface{})
- func RegisterPebbleStore(path string)
- func RegisterStoreCustomFunc(path string)
- func RegisterTengoCustomFunc(name string, fn interface{})
- func RegisterTengoCustomFuncs(fns map[string]interface{})
- func StoreAdd(ns string, key string, value string)
- func StoreDelete(ns string, key string)
- func StoreGet(ns string, key string) string
- func TengoEval(script string, retkey string, env map[string]tengo.Object) (interface{}, error)
- func XMLShuffle(ns string, model string, input *ast.Term) (*ast.Term, error)
- type AA
- type Counter
- type Gauge
- type PersistApi
Constants ¶
View Source
const SM2key = "sm2key"
View Source
const SM4key = "sm4key"
Variables ¶
View Source
var ExprContext = make(map[string]interface{})
View Source
var StoreContext string
View Source
var TengoContext = make(map[string]interface{})
Functions ¶
func AdjustMaskEvalArgs ¶ added in v0.55.6
func DeRegisterTengoCustomFunc ¶
func DeRegisterTengoCustomFunc(name string)
func DeRegisterTengoCustomFuncs ¶
func DeRegisterTengoCustomFuncs(names []string)
func DeleteExprCustomFunc ¶
func DeleteExprCustomFunc(name string)
func DeleteExprCustomFuncs ¶
func DeleteExprCustomFuncs(names []string)
func ExprCompiledCall ¶
func ExprNonCompiledEval ¶
func PatchObject ¶
func RegisterExprCustomFunc ¶
func RegisterExprCustomFunc(name string, fn interface{})
func RegisterExprCustomFuncs ¶
func RegisterExprCustomFuncs(fns map[string]interface{})
func RegisterPebbleStore ¶
func RegisterPebbleStore(path string)
func RegisterStoreCustomFunc ¶
func RegisterStoreCustomFunc(path string)
func RegisterTengoCustomFunc ¶
func RegisterTengoCustomFunc(name string, fn interface{})
func RegisterTengoCustomFuncs ¶
func RegisterTengoCustomFuncs(fns map[string]interface{})
func StoreDelete ¶ added in v0.55.6
Types ¶
type Gauge ¶
type Gauge struct {
Value int64
Duration int64
Timestamp map[int64]int64
// contains filtered or unexported fields
}
func (*Gauge) GetDuration ¶
func (*Gauge) SetDuration ¶
type PersistApi ¶
type PersistApi interface {
Set(key string, value interface{}) error
SetString(key string, value string) error
SetInteger(key string, value int64) error
SetFloat(key string, value float64) error
SetBool(key string, value bool) error
SetBytes(key string, value []byte) error
Get(key string) (interface{}, error)
GetString(key string) (string, error)
GetInteger(key string) (int64, error)
GetBool(key string) (bool, error)
GetFloat(key string) (float64, error)
GetBytes(key string) ([]byte, error)
Delete(key string) error
}
func NewPebbleStorage ¶
func NewPebbleStorage(path string, options pebble.Options) PersistApi
Click to show internal directories.
Click to hide internal directories.