mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-10-13 02:53:52 +08:00
chore: upgrade coredns version (#550)
This commit is contained in:
37
vendor/github.com/expr-lang/expr/vm/utils.go
generated
vendored
Normal file
37
vendor/github.com/expr-lang/expr/vm/utils.go
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
package vm
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"time"
|
||||
)
|
||||
|
||||
type (
|
||||
Function = func(params ...any) (any, error)
|
||||
SafeFunction = func(params ...any) (any, uint, error)
|
||||
)
|
||||
|
||||
var (
|
||||
errorType = reflect.TypeOf((*error)(nil)).Elem()
|
||||
)
|
||||
|
||||
type Scope struct {
|
||||
Array reflect.Value
|
||||
Index int
|
||||
Len int
|
||||
Count int
|
||||
Acc any
|
||||
}
|
||||
|
||||
type groupBy = map[any][]any
|
||||
|
||||
type Span struct {
|
||||
Name string `json:"name"`
|
||||
Expression string `json:"expression"`
|
||||
Duration int64 `json:"duration"`
|
||||
Children []*Span `json:"children"`
|
||||
start time.Time
|
||||
}
|
||||
|
||||
func GetSpan(program *Program) *Span {
|
||||
return program.span
|
||||
}
|
Reference in New Issue
Block a user