function

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadArgument    = errors.New("bad argument")
	ErrNoSuchFunction = errors.New("no such function")
	ErrTooFewArgs     = errors.New("too few arguments")
	ErrTooManyArgs    = errors.New("too many arguments")
)

Functions

func CastToTime

func CastToTime(zv zed.Value) (nano.Ts, error)

func HasBoolResult

func HasBoolResult(name string) bool

HasBoolResult returns true if the function name returns a Boolean value. XXX This is a hack so the semantic compiler can determine if a single call expr is a Filter or Put proc. At some point function declarations should have signatures so the return type can be introspected.

Types

type Interface

type Interface interface {
	Call([]zed.Value) (zed.Value, error)
}

func New

func New(zctx *zed.Context, name string, narg int) (Interface, bool, error)

Jump to

Keyboard shortcuts

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