field

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type string
const (
	String       Type = "string"
	Integer      Type = "integer"
	Boolean      Type = "boolean"
	Float        Type = "float"
	Date         Type = "date"
	Relationship Type = "relationship"
)

func (Type) AsString

func (t Type) AsString() string

func (Type) Validate

func (t Type) Validate() error

type ValidationType

type ValidationType string
const (
	Enum      ValidationType = "enum"
	Email     ValidationType = "email"
	Slug      ValidationType = "slug"
	Uuid      ValidationType = "uuid"
	Between   ValidationType = "between"
	OneToMany ValidationType = "one-to-many"
	OneToOne  ValidationType = "one-to-one"
)

func (ValidationType) AsString

func (s ValidationType) AsString() string

Jump to

Keyboard shortcuts

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