compute

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// View View component
	View uint8 = iota
	// Edit Edit component
	Edit
	// Filter Filter component
	Filter
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Computable

type Computable struct {
	Computes *Maps
}

Computable with computes

func (*Computable) ComputeEdit

func (c *Computable) ComputeEdit(name string, process *process.Process, args []interface{}, getField func(string) (*field.ColumnDSL, string, string, error)) error

ComputeEdit edit compute edit

func (*Computable) ComputeFilter

func (c *Computable) ComputeFilter(name string, process *process.Process, args []interface{}, getFilter func(string) (*field.FilterDSL, string, string, error)) error

ComputeFilter filter

func (*Computable) ComputeView

func (c *Computable) ComputeView(name string, process *process.Process, res interface{}, getField func(string) (*field.ColumnDSL, string, string, error)) error

ComputeView view view

type Maps

type Maps struct {
	Edit   map[string][]Unit
	View   map[string][]Unit
	Filter map[string][]Unit
}

Maps compute mapping

type Unit

type Unit struct {
	Name string // index
	Kind uint8  // Type
}

Unit the compute unit

Jump to

Keyboard shortcuts

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