projector

package
v0.0.0-...-7fbf898 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Overview

Package projector contains methods and mechanisms for creating and calling projectors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromDef

func FromDef(definition *mappb.ProjectorDefinition, e mapping.Engine) types.Projector

FromDef creates a projector from a proto definition. This will not register it.

func FromFunction

func FromFunction(fn interface{}, name string) (types.Projector, error)

FromFunction creates a projector from a given function. The function must have a return type of (JSONObject, error) and all arguments must be assignable to JSONObject. This will not register the projector.

func IsZero

func IsZero(v reflect.Value) bool

IsZero reports whether v is the zero value for its type. It panics if the argument is invalid. This is to backfill for the lack of this method in older versions of Go.

Types

This section is empty.

Jump to

Keyboard shortcuts

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