builder

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Create         = Operation("create")
	Update         = Operation("update")
	Action         = Operation("action")
	List           = Operation("list")
	ListForCreate  = Operation("listcreate")
	ErrComplexType = errors.New("complex type")
)

Functions

func CheckFieldCriteria

func CheckFieldCriteria(fieldName string, field types.Field, value interface{}) error

func ConvertSimple

func ConvertSimple(fieldType string, value interface{}, op Operation) (interface{}, error)

Types

type Builder

type Builder interface {
	Construct(schema *types.Schema, input types.APIObject, op Operation) (types.APIObject, error)
}

func NewBuilder

func NewBuilder(apiOp *types.APIRequest) Builder

type Operation

type Operation string

func (Operation) IsList

func (o Operation) IsList() bool

Jump to

Keyboard shortcuts

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