relation

package
v0.0.0-...-f3c3327 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	String FieldType = "String"
	Number           = "Number"
	Bool             = "Bool"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name string
	Type FieldType
}

func NewField

func NewField(name string, fieldtype FieldType) *Field

type FieldType

type FieldType string

func GetFieldTypeByName

func GetFieldTypeByName(name string) (FieldType, error)

type Relation

type Relation struct {
	// contains filtered or unexported fields
}

func NewRelation

func NewRelation(name string) *Relation

func (*Relation) AddField

func (relation *Relation) AddField(name string, fieldtype FieldType)

func (*Relation) Fields

func (relation *Relation) Fields() []*Field

func (*Relation) Name

func (relation *Relation) Name() string

Jump to

Keyboard shortcuts

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