Help us shape the future of Go! Take the 2026 Go Developer Survey

data

package
v0.4.36 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	ID        string     `json:"id,omitempty"`
	CreatedAt time.Time  `json:"created_at,omitempty"`
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
	DeletedAt *time.Time `json:"deleted_at,omitempty"`
}

type Health

type Health struct {
	Status    string            `json:"status"`
	Databases map[string]string `json:"databases,omitempty"`
}

type Model

type Model struct {
	ID        uuid.UUID           `json:"id"`
	CreatedAt time.Time           `json:"created_at"`
	UpdatedAt sql.Null[time.Time] `json:"updated_at"`
	DeletedAt sql.Null[time.Time] `json:"deleted_at"`
}

func ModelFromEntity

func ModelFromEntity(e *Entity) Model

func (*Model) BeforeCreateID_UUID added in v0.3.92

func (m *Model) BeforeCreateID_UUID() error

func (Model) Entity

func (m Model) Entity() Entity

Jump to

Keyboard shortcuts

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