Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aos
GitHub Repository: aos/grafana-agent
Path: blob/main/pkg/river/internal/value/raw_function.go
4096 views
1
package value
2
3
// RawFunction allows creating function implementations using raw River values.
4
// This is useful for functions which wish to operate over dynamic types while
5
// avoiding decoding to interface{} for performance reasons.
6
//
7
// The func value itself is provided as an argument so error types can be
8
// filled.
9
type RawFunction func(funcValue Value, args ...Value) (Value, error)
10
11