graph

package
v0.0.0-...-64a9ce5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 25 Imported by: 16

Documentation

Overview

generated by go:generate go run gen/nodeslice.go

Index

Constants

View Source
const (
	ENDPOINT     = "endpoint"
	MethodPost   = "post"
	MethodPipe   = "pipe"
	MethodGet    = "get"
	MethodAction = "action"
	MethodPut    = "put"
	MethodDelete = "delete"
)
View Source
const (
	FieldKindType        = "TypeField"
	FieldKindEnum        = "EnumField"
	FieldKindString      = "StringField"
	FieldKindInt32       = "Int32Field"
	FieldKindFloat64     = "Float64Field"
	FieldKindBool        = "BoolField"
	FieldKindTypeList    = "TypeListField"
	FieldKindEnumList    = "EnumListField"
	FieldKindStringList  = "StringListField"
	FieldKindInt32List   = "Int32ListField"
	FieldKindFloat64List = "Float64ListField"
	FieldKindBoolList    = "BoolListField"
)
View Source
const (
	ROOT      = "root"
	FieldKind = "kind"
)
View Source
const (
	String  = "string"
	Int32   = "int32"
	Float64 = "float64"
	Bool    = "bool"
)
View Source
const (
	ENUM = "enum"
)
View Source
const (
	FIELD = "field"
)
View Source
const (
	PATH = "path"
)
View Source
const (
	RELATION = "relation"
)
View Source
const (
	TYPE = "type"
)

Variables

This section is empty.

Functions

func CollectNodeIdSlices

func CollectNodeIdSlices(i interface{}, ignore map[string]bool) (m map[string][]NodeId)

func CollectNodeIds

func CollectNodeIds(i interface{}, ignore map[string]bool) (m map[string]NodeId)

func GetEdgeMaps

func GetEdgeMaps(e interface{}, ignore ...string) (singleEdges map[string]map[string]NodeId, multiEdges map[string]map[string][]NodeId)

func Print

func Print(i interface{}, exclude ...string)

func Sprint

func Sprint(i interface{}, exclude ...string) string

func ToString

func ToString(id NodeId) string

func ToStrings

func ToStrings(nodeIds ...NodeId) (ss []string)

Types

type BasicTypeNode

type BasicTypeNode struct {
	NodeTrait `yaml:"inline,omitempty" json:",omitempty"`
}

func NewBasicTypeNode

func NewBasicTypeNode() *BasicTypeNode

func (BasicTypeNode) IsBoolNode

func (n BasicTypeNode) IsBoolNode() bool

func (BasicTypeNode) IsFloat64Node

func (n BasicTypeNode) IsFloat64Node() bool

func (BasicTypeNode) IsInt32Node

func (n BasicTypeNode) IsInt32Node() bool

func (BasicTypeNode) IsStringNode

func (n BasicTypeNode) IsStringNode() bool

func (*BasicTypeNode) Print

func (n *BasicTypeNode) Print()

func (*BasicTypeNode) Type

func (n *BasicTypeNode) Type() string

func (*BasicTypeNode) Validate

func (n *BasicTypeNode) Validate() (errs []error)

type BasicTypeNodeSlice

type BasicTypeNodeSlice []*BasicTypeNode

func (BasicTypeNodeSlice) GetIds

func (nm BasicTypeNodeSlice) GetIds() (ids []NodeId)

func (BasicTypeNodeSlice) Map

func (ns BasicTypeNodeSlice) Map() (fnm BasicTypeNodeMap)

func (BasicTypeNodeSlice) Sort

type EndpointNode

type EndpointNode struct {
	NodeTrait `yaml:"inline,omitempty" json:",omitempty"`
	Edges     EndpointNodeEdges `yaml:",omitempty" json:"edges,omitempty"`
	Data      EndpointNodeData  `yaml:",omitempty" json:"data,omitempty"`
}

func NewEndpointNode

func NewEndpointNode() *EndpointNode

func (*EndpointNode) GetData

func (n *EndpointNode) GetData() interface{}

func (*EndpointNode) GetEdges

func (n *EndpointNode) GetEdges() interface{}

func (*EndpointNode) Init

func (n *EndpointNode) Init(rn *RootNode, name, method, forName, requestName, responseName string, additional []interface{})

func (*EndpointNode) Print

func (n *EndpointNode) Print()

func (*EndpointNode) Type

func (n *EndpointNode) Type() string

func (*EndpointNode) Validate

func (n *EndpointNode) Validate() (errs []error)

type EndpointNodeData

type EndpointNodeData struct {
	Method string `yaml:",omitempty" json:"method,omitempty"`
}

type EndpointNodeSlice

type EndpointNodeSlice []*EndpointNode

func (EndpointNodeSlice) GetIds

func (nm EndpointNodeSlice) GetIds() (ids []NodeId)

func (EndpointNodeSlice) Map

func (ns EndpointNodeSlice) Map() (fnm EndpointNodeMap)

func (EndpointNodeSlice) Sort

type EnumNode

type EnumNode struct {
	NodeTrait `yaml:"inline,omitempty" json:",omitempty"`
	Data      EnumNodeData  `yaml:",omitempty" json:"data,omitempty"`
	Edges     EnumNodeEdges `yaml:",omitempty" json:"edges,omitempty"`
}

func NewEnumNode

func NewEnumNode() *EnumNode

func (*EnumNode) GetData

func (n *EnumNode) GetData() interface{}

func (*EnumNode) Init

func (n *EnumNode) Init(rn *RootNode, name string, values []string, additional []interface{})

func (*EnumNode) Print

func (n *EnumNode) Print()

func (*EnumNode) Type

func (n *EnumNode) Type() string

func (*EnumNode) Validate

func (n *EnumNode) Validate() (errs []error)

type EnumNodeData

type EnumNodeData struct {
	Values []string `yaml:",omitempty" json:"values,omitempty"`
}

type EnumNodeSlice

type EnumNodeSlice []*EnumNode

func (EnumNodeSlice) GetIds

func (nm EnumNodeSlice) GetIds() (ids []NodeId)

func (EnumNodeSlice) Map

func (ns EnumNodeSlice) Map() (fnm EnumNodeMap)

func (EnumNodeSlice) Sort

func (ns EnumNodeSlice) Sort() EnumNodeSlice

type FieldNode

type FieldNode struct {
	NodeTrait `yaml:"inline,omitempty" json:"omitempty"`
	Edges     FieldNodeEdges `yaml:",omitempty" json:"edges,omitempty"`
}

func BoolField

func BoolField(name string, additional ...interface{}) (n *FieldNode)

func EnumField

func EnumField(name string, typeName string, additional ...interface{}) (n *FieldNode)

func Float64Field

func Float64Field(name string, additional ...interface{}) (n *FieldNode)

func Int32Field

func Int32Field(name string, additional ...interface{}) (n *FieldNode)

func ListField

func ListField(n *FieldNode) *FieldNode

func NewFieldNode

func NewFieldNode() (fn *FieldNode)

func StringField

func StringField(name string, additional ...interface{}) (n *FieldNode)

func TypeField

func TypeField(name string, typeName string, additional ...interface{}) (n *FieldNode)

func (*FieldNode) Copy

func (n *FieldNode) Copy() (fn *FieldNode)

func (*FieldNode) GetEdges

func (n *FieldNode) GetEdges() interface{}

func (*FieldNode) Init

func (n *FieldNode) Init(rn *RootNode, parentId NodeId)

func (*FieldNode) IsBasicType

func (n *FieldNode) IsBasicType() bool

func (*FieldNode) IsBasicTypeList

func (n *FieldNode) IsBasicTypeList() bool

func (*FieldNode) IsBool

func (n *FieldNode) IsBool() bool

func (*FieldNode) IsBoolList

func (n *FieldNode) IsBoolList() bool

func (*FieldNode) IsEnum

func (n *FieldNode) IsEnum() bool

func (*FieldNode) IsEnumList

func (n *FieldNode) IsEnumList() bool

func (*FieldNode) IsFloat64

func (n *FieldNode) IsFloat64() bool

func (*FieldNode) IsFloat64List

func (n *FieldNode) IsFloat64List() bool

func (*FieldNode) IsInt32

func (n *FieldNode) IsInt32() bool

func (*FieldNode) IsInt32List

func (n *FieldNode) IsInt32List() bool

func (*FieldNode) IsString

func (n *FieldNode) IsString() bool

func (*FieldNode) IsStringList

func (n *FieldNode) IsStringList() bool

func (*FieldNode) IsType

func (n *FieldNode) IsType() bool

func (*FieldNode) IsTypeList

func (n *FieldNode) IsTypeList() bool

func (*FieldNode) Kind

func (n *FieldNode) Kind() string

func (*FieldNode) Print

func (n *FieldNode) Print()

func (*FieldNode) Type

func (n *FieldNode) Type() string

func (*FieldNode) Validate

func (n *FieldNode) Validate() (errs []error)

type FieldNodeSlice

type FieldNodeSlice []*FieldNode

func (FieldNodeSlice) GetIds

func (nm FieldNodeSlice) GetIds() (ids []NodeId)

func (FieldNodeSlice) Map

func (ns FieldNodeSlice) Map() (fnm FieldNodeMap)

func (FieldNodeSlice) Sort

func (ns FieldNodeSlice) Sort() FieldNodeSlice

type Filter

type Filter struct {
	Names *NamesSubset `yaml:"names,omitempty" json:"names,omitempty"`
	Flags *FlagsSubset `yaml:"flags,omitempty" json:"flags,omitempty"`
}

type Flags

type Flags map[string]bool

type FlagsContainer

type FlagsContainer struct {
	Flags Flags `yaml:",omitempty" json:"flags,inline,omitempty"`
	// contains filtered or unexported fields
}

func (FlagsContainer) Copy

func (c FlagsContainer) Copy() (c0 FlagsContainer)

func (FlagsContainer) Is

func (c FlagsContainer) Is(f string, b bool) bool

func (FlagsContainer) Or

func (c FlagsContainer) Or(flags ...string) bool

func (FlagsContainer) Set

type FlagsSubset

type FlagsSubset struct {
	Or  []string `yaml:"or,omitempty" json:"or,omitempty"`
	Nor []string `yaml:"nor,omitempty" json:"nor,omitempty"`
	And []string `yaml:"and,omitempty" json:"and,omitempty"`
}

type GraphStats

type GraphStats struct {
	Total     NodeStats `yaml:",omitempty" json:"total,omitempty"`
	BasicType NodeStats `yaml:",omitempty" json:"basictype,omitempty"`
	Endpoint  NodeStats `yaml:",omitempty" json:"endpoint,omitempty"`
	Enum      NodeStats `yaml:",omitempty" json:"enum,omitempty"`
	Field     NodeStats `yaml:",omitempty" json:"field,omitempty"`
	Relation  NodeStats `yaml:",omitempty" json:"relation,omitempty"`
	Type      NodeStats `yaml:",omitempty" json:"type,omitempty"`
}

func GetMissing

func GetMissing(rn *RootNode) (missing GraphStats)

func GetUnused

func GetUnused(rn *RootNode, include ...string) (unused GraphStats)

type NamesSubset

type NamesSubset struct {
	ContainsOr []string `yaml:"containsOr,omitempty" json:"containsOr,omitempty"`
	Or         []string `yaml:"or,omitempty" json:"or,omitempty"`
	Nor        []string `yaml:"nor,omitempty" json:"nor,omitempty"`
}

type Node

type Node interface {
	Type() string
	SetId(NodeId)
	Id() NodeId
	SetRoot(*RootNode)
	Name() string
	PluralName() string
	FieldName() string
	SetName(string)
	Flags() FlagsContainer
	Validate() []error
	GetEdges() interface{}
	GetData() interface{}
	Wire()
	Print()
}

type NodeId

type NodeId string
const (
	STRING     NodeId = "string"
	INT32      NodeId = "int32"
	FLOAT64    NodeId = "float64"
	BOOL       NodeId = "bool"
	BASIC_TYPE        = "basictype"
)

func MergeNodeIds

func MergeNodeIds(idss ...[]NodeId) []NodeId

func ToNodeId

func ToNodeId(id string) NodeId

func ToNodeIds

func ToNodeIds(names ...string) (nodeIds []NodeId)

type NodeIds

type NodeIds []NodeId

func (NodeIds) Append

func (ns NodeIds) Append(ns0 NodeIds)

type NodeMap

type NodeMap map[NodeId]Node

func (NodeMap) Add

func (nm NodeMap) Add(ns ...Node)

func (NodeMap) BroadcastPrint

func (nm NodeMap) BroadcastPrint()

func (NodeMap) BroadcastSetFlag

func (nm NodeMap) BroadcastSetFlag(name string, v bool)

func (NodeMap) ById

func (nm NodeMap) ById(id NodeId) (n Node)

func (NodeMap) ByIds

func (nm NodeMap) ByIds(ids ...NodeId) (filtered NodeMap)

func (NodeMap) ByName

func (nm NodeMap) ByName(name string) Node

func (NodeMap) ByNames

func (nm NodeMap) ByNames(names ...string) NodeMap

func (NodeMap) Each

func (nm NodeMap) Each(f func(n Node))

func (NodeMap) ExcludeIds

func (nm NodeMap) ExcludeIds(ids ...NodeId) NodeMap

func (NodeMap) ExcludeNames

func (nm NodeMap) ExcludeNames(names ...string) NodeMap

func (NodeMap) Filter

func (nm NodeMap) Filter(s Filter) NodeMap

func (NodeMap) FilterByFlags

func (nm NodeMap) FilterByFlags(subset FlagsSubset) NodeMap

func (NodeMap) FilterByNames

func (nm NodeMap) FilterByNames(subset NamesSubset) NodeMap

func (NodeMap) FilterFunc

func (nm NodeMap) FilterFunc(f func(n Node) bool) (nm0 NodeMap)

func (NodeMap) Flagged

func (nm NodeMap) Flagged(flag string, b bool) (nm0 NodeMap)

func (NodeMap) FlaggedOr

func (nm NodeMap) FlaggedOr(fs ...string) (nm0 NodeMap)

func (NodeMap) GetIds

func (nm NodeMap) GetIds() (ids []NodeId)

func (NodeMap) HasId

func (nm NodeMap) HasId(id NodeId) bool

type NodeStats

type NodeStats struct {
	Count int      `yaml:",omitempty" json:"count,omitempty"`
	Ids   []NodeId `yaml:",omitempty" json:"ids,omitempty"`
}

type NodeTrait

type NodeTrait struct {
	Idx   NodeId `yaml:",omitempty" json:"id,omitempty"`
	Namex string `yaml:",omitempty" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeTrait) FieldName

func (n *NodeTrait) FieldName() string

func (*NodeTrait) Flags

func (t *NodeTrait) Flags() FlagsContainer

func (*NodeTrait) GetData

func (t *NodeTrait) GetData() interface{}

func (*NodeTrait) GetEdges

func (t *NodeTrait) GetEdges() interface{}

func (*NodeTrait) Id

func (t *NodeTrait) Id() NodeId

func (*NodeTrait) Name

func (t *NodeTrait) Name() string

func (*NodeTrait) PluralName

func (t *NodeTrait) PluralName() string

func (*NodeTrait) SetId

func (t *NodeTrait) SetId(id NodeId)

func (*NodeTrait) SetName

func (t *NodeTrait) SetName(name string)

func (*NodeTrait) SetRoot

func (t *NodeTrait) SetRoot(r *RootNode)

func (*NodeTrait) Wire

func (t *NodeTrait) Wire()

type PathNode

type PathNode struct {
	NodeTrait `yaml:"inline,omitempty" json:",omitempty"`
	Edges     PathNodeEdges `yaml:",omitempty" json:"edges,omitempty"`
	Data      PathNodeData  `yaml:",omitempty" json:"data,omitempty"`
}

func NewPathNode

func NewPathNode() *PathNode

func (*PathNode) Init

func (n *PathNode) Init(rn *RootNode, path RelationPath, additional []interface{})

func (*PathNode) Print

func (n *PathNode) Print()

func (*PathNode) Type

func (n *PathNode) Type() string

func (*PathNode) Validate

func (n *PathNode) Validate() (errs []error)

type PathNodeData

type PathNodeData struct {
	Cardinality string `yaml:",omitempty" json:"cardinality,omitempty"`
	Verb        string `yaml:",omitempty" json:"verb,omitempty"`
	IsActive    bool   `yaml:",omitempty" json:"is_active,omitempty"`
}

type PathNodeSlice

type PathNodeSlice []*PathNode

func (PathNodeSlice) GetIds

func (nm PathNodeSlice) GetIds() (ids []NodeId)

func (PathNodeSlice) Map

func (ns PathNodeSlice) Map() (fnm PathNodeMap)

func (PathNodeSlice) Sort

func (ns PathNodeSlice) Sort() PathNodeSlice

type PrintNode

type PrintNode struct {
	Id        string
	Name      string
	Data      interface{}
	Flags     map[string]bool
	Edges     map[string]map[string]NodeId
	MultiEdge map[string]map[string][]NodeId
}

type RelationNode

type RelationNode struct {
	NodeTrait `yaml:"inline,omitempty" json:",omitempty"`
	Edges     RelationNodeEdges `yaml:",omitempty" json:"edges,omitempty"`
}

func NewRelationNode

func NewRelationNode() *RelationNode

func (*RelationNode) GetEdges

func (n *RelationNode) GetEdges() interface{}

func (*RelationNode) Init

func (n *RelationNode) Init(rn *RootNode, activePath RelationPath, passivePath RelationPath)

func (*RelationNode) Print

func (n *RelationNode) Print()

func (*RelationNode) Type

func (n *RelationNode) Type() string

func (*RelationNode) Validate

func (n *RelationNode) Validate() (errs []error)

func (*RelationNode) Wire

func (n *RelationNode) Wire()

type RelationNodeSlice

type RelationNodeSlice []*RelationNode

func (RelationNodeSlice) GetIds

func (nm RelationNodeSlice) GetIds() (ids []NodeId)

func (RelationNodeSlice) Map

func (ns RelationNodeSlice) Map() (fnm RelationNodeMap)

func (RelationNodeSlice) Sort

type RelationPath

type RelationPath struct {
	From        string   `yaml:",omitempty" json:"from,omitempty"`
	Fragments   []string `yaml:",omitempty" json:"fragments,omitempty"`
	Cardinality string   `yaml:",omitempty" json:"cardinality,omitempty"`
	To          string   `yaml:",omitempty" json:"to,omitempty"`
}

func (RelationPath) ConcatFragments

func (p RelationPath) ConcatFragments() (s string)

func (RelationPath) Name

func (p RelationPath) Name() string

type RootNode

type RootNode struct {
	NodeTrait  `yaml:"inline,omitempty" json:",omitempty"`
	BasicTypes BasicTypeNodeMap `yaml:",omitempty" json:"basic_types,omitempty"`
	Endpoints  EndpointNodeMap  `yaml:",omitempty" json:"endpoints,omitempty"`
	Enums      EnumNodeMap      `yaml:",omitempty" json:"enums,omitempty"`
	Paths      PathNodeMap      `yaml:",omitempty" json:"paths,omitempty"`
	Fields     FieldNodeMap     `yaml:",omitempty" json:"fields,omitempty"`
	Relations  RelationNodeMap  `yaml:",omitempty" json:"relations,omitempty"`
	Types      TypeNodeMap      `yaml:",omitempty" json:"Types,omitempty"`
	// contains filtered or unexported fields
}

func NewRoot

func NewRoot() (root *RootNode)

func NewRootNode

func NewRootNode() (rn *RootNode)

func (*RootNode) AddActionEndpoint

func (rn *RootNode) AddActionEndpoint(name string, inputFns FieldNodeSlice, outputFns FieldNodeSlice) (tn *TypeNode, en *EnumNode)

func (*RootNode) AddEndpointNode

func (rn *RootNode) AddEndpointNode(name, method, forName, requestName, responseName string, additional ...interface{}) (en *EndpointNode)

func (*RootNode) AddEnumNode

func (rn *RootNode) AddEnumNode(name string, values []string, additional ...interface{}) (en *EnumNode)

func (*RootNode) AddRange

func (rn *RootNode) AddRange(name string, unit string) *TypeNode

func (*RootNode) AddRatio

func (rn *RootNode) AddRatio(ratioName, counterName, dividerName string) *TypeNode

func (*RootNode) AddRelationNode

func (rn *RootNode) AddRelationNode(activePath RelationPath, passivePath RelationPath) (rn0 *RelationNode)

func (*RootNode) AddScalar

func (rn *RootNode) AddScalar(name string, unit string) *TypeNode

func (*RootNode) AddTypeNode

func (rn *RootNode) AddTypeNode(name string, fieldNodeSlice FieldNodeSlice, additional ...interface{}) (tn *TypeNode)

func (*RootNode) AddUnion

func (rn *RootNode) AddUnion(name string, fields []interface{}, additional ...interface{}) (tn *TypeNode, en *EnumNode)

func (*RootNode) AddValue

func (rn *RootNode) AddValue(name string, unit string) *TypeNode

func (*RootNode) GetNodes

func (rn *RootNode) GetNodes(include ...string) (nm NodeMap)

func (*RootNode) Print

func (rn *RootNode) Print()

func (*RootNode) Type

func (rn *RootNode) Type() string

func (*RootNode) Validate

func (rn *RootNode) Validate() (errs []error)

func (*RootNode) Wire

func (rn *RootNode) Wire()

type ShadowedFieldNodeMap

type ShadowedFieldNodeMap struct {
	Map map[NodeId]*FieldNode
	// contains filtered or unexported fields
}

func (ShadowedFieldNodeMap) Add

func (nm ShadowedFieldNodeMap) Add(ns ...*FieldNode)

func (ShadowedFieldNodeMap) AddFieldNodeMap

func (nm ShadowedFieldNodeMap) AddFieldNodeMap(nm0 FieldNodeMap) (nm1 FieldNodeMap)

func (ShadowedFieldNodeMap) BroadcastSetFlag

func (nm ShadowedFieldNodeMap) BroadcastSetFlag(name string, v bool)

func (ShadowedFieldNodeMap) ById

func (nm ShadowedFieldNodeMap) ById(id NodeId) (n *FieldNode)

func (ShadowedFieldNodeMap) ByIds

func (nm ShadowedFieldNodeMap) ByIds(ids ...NodeId) (nm0 FieldNodeMap)

func (ShadowedFieldNodeMap) ByName

func (nm ShadowedFieldNodeMap) ByName(name string) *FieldNode

func (ShadowedFieldNodeMap) ByNames

func (nm ShadowedFieldNodeMap) ByNames(names ...string) FieldNodeMap

func (ShadowedFieldNodeMap) Copy

func (nm ShadowedFieldNodeMap) Copy() (nm0 FieldNodeMap)

func (ShadowedFieldNodeMap) Each

func (nm ShadowedFieldNodeMap) Each(f func(n *FieldNode))

func (ShadowedFieldNodeMap) ExcludeIds

func (nm ShadowedFieldNodeMap) ExcludeIds(ids ...NodeId) FieldNodeMap

func (ShadowedFieldNodeMap) ExcludeNames

func (nm ShadowedFieldNodeMap) ExcludeNames(names ...string) FieldNodeMap

func (ShadowedFieldNodeMap) Filter

func (nm ShadowedFieldNodeMap) Filter(s Filter) (nm0 FieldNodeMap)

func (ShadowedFieldNodeMap) FilterFunc

func (nm ShadowedFieldNodeMap) FilterFunc(f func(n *FieldNode) bool) (nm0 FieldNodeMap)

func (ShadowedFieldNodeMap) Flagged

func (nm ShadowedFieldNodeMap) Flagged(flag string, b bool) (nm0 FieldNodeMap)

func (ShadowedFieldNodeMap) GetIds

func (nm ShadowedFieldNodeMap) GetIds() (ids []NodeId)

func (ShadowedFieldNodeMap) HasId

func (nm ShadowedFieldNodeMap) HasId(id NodeId) bool

func (ShadowedFieldNodeMap) HasName

func (nm ShadowedFieldNodeMap) HasName(name string) bool

func (ShadowedFieldNodeMap) ToNodeMap

func (nm ShadowedFieldNodeMap) ToNodeMap() (nm0 NodeMap)

type TypeNode

type TypeNode struct {
	NodeTrait `yaml:"inline,omitempty" json:",omitempty"`
	Edges     TypeNodeEdges `yaml:",omitempty" json:"edges,omitempty"`
}

func NewTypeNode

func NewTypeNode() *TypeNode

func (*TypeNode) AddFieldNodeSlice

func (n *TypeNode) AddFieldNodeSlice(fns FieldNodeSlice)

func (*TypeNode) AddFieldNodes

func (n *TypeNode) AddFieldNodes(fns ...*FieldNode)

func (*TypeNode) GetEdges

func (n *TypeNode) GetEdges() interface{}

func (TypeNode) HasAnyFieldFlag

func (n TypeNode) HasAnyFieldFlag(flag string, b bool) bool

func (*TypeNode) Init

func (n *TypeNode) Init(rn *RootNode, name string, fns FieldNodeSlice, additional []interface{})

func (*TypeNode) PluralFieldName

func (n *TypeNode) PluralFieldName() string

func (*TypeNode) Print

func (n *TypeNode) Print()

func (*TypeNode) Type

func (n *TypeNode) Type() string

func (*TypeNode) Validate

func (n *TypeNode) Validate() (errs []error)

type TypeNodeSlice

type TypeNodeSlice []*TypeNode

func (TypeNodeSlice) GetIds

func (nm TypeNodeSlice) GetIds() (ids []NodeId)

func (TypeNodeSlice) Map

func (ns TypeNodeSlice) Map() (fnm TypeNodeMap)

func (TypeNodeSlice) Sort

func (ns TypeNodeSlice) Sort() TypeNodeSlice

Jump to

Keyboard shortcuts

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