predicate

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTemplate

func RegisterTemplate(template *Template)

func Templates

func Templates(callback NotifierFn) (types map[string]*Template, closer func())

Types

type BoolFilter

type BoolFilter struct {
	Include []bool `json:",omitempty"`
	Exclude []bool `json:",omitempty"`
}

type IntFilter

type IntFilter struct {
	Include []int `json:",omitempty"`
	Exclude []int `json:",omitempty"`
}

type NamedArgument

type NamedArgument struct {
	Name     string
	Position int
}

type NamedFilter

type NamedFilter struct {
	Name    string   `xls:"name=Filter"`
	Include []string `json:",omitempty"`
	Exclude []string `json:",omitempty"`
}

type NamedFilters

type NamedFilters []*NamedFilter

type NotifierFn

type NotifierFn func(template *Template)

type Registry

type Registry struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New() *Registry

New creates a new registry

func (*Registry) Lookup

func (r *Registry) Lookup(name string) (*Template, error)

type StringsFilter

type StringsFilter struct {
	Include []string `json:",omitempty"`
	Exclude []string `json:",omitempty"`
}

type Template

type Template struct {
	Name   string
	Source string
	Args   []*NamedArgument
}

Jump to

Keyboard shortcuts

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