view

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Templates holds the template information for a file that the graph is generating.
	Templates = []gen.TypeTemplate{
		{
			Name:   "view",
			Format: pkgf("%s_view.go"),
		},
	}
	// GraphTemplates holds the templates applied on the graph.
	GraphTemplates = []gen.GraphTemplate{
		{
			Name:   "base",
			Format: "entview.go",
		},
	}
)

Functions

func Generate

func Generate(g *gen.Graph) (err error)

Types

type InputRef

type InputRef struct {
	PrerequisiteEdges  []*gen.Edge
	PrerequisiteFields []*gen.Field
	IndexFields        []*gen.Field
	ImmutableFields    []*gen.Field
	Fields             []*gen.Field
	AdditionalEdges    []*gen.Edge
}

func (InputRef) FieldsSkipWrite added in v0.5.0

func (r InputRef) FieldsSkipWrite() []*gen.Field

FieldsSkipWrite returns the Fields should not create and update from api.

func (InputRef) FieldsWithoutIndexing

func (r InputRef) FieldsWithoutIndexing() []*gen.Field

FieldsWithoutIndexing returns the Fields that not found in IndexFields.

type OutputRef

type OutputRef struct {
	Fields []*gen.Field
	Edges  []*gen.Edge
}

Jump to

Keyboard shortcuts

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