schema

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr added in v0.11.0

type Addr struct{ net.Addr }

func (Addr) MarshalJSON added in v0.11.0

func (a Addr) MarshalJSON() ([]byte, error)

func (Addr) String added in v0.11.0

func (a Addr) String() string

func (*Addr) UnmarshalJSON added in v0.11.0

func (a *Addr) UnmarshalJSON(data []byte) error

type T

type T struct {
	I  int      `json:"i,omitempty"`
	F  float64  `json:"f,omitempty"`
	B  bool     `json:"b,omitempty"`
	S  string   `json:"s,omitempty"`
	T  *T       `json:"t,omitempty"`
	Li []int    `json:"li"`
	Ls []string `json:"ls"`
	// Do not omit empty or null maps.
	M map[string]any `json:"m"`
}

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Fields

func (User) Fields() []ent.Field

Fields of the User.

Jump to

Keyboard shortcuts

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