models

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseModel

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

func (*BaseModel) AfterLoad

func (m *BaseModel) AfterLoad(ctx context.Context, tx *sqlx.Tx) error

func (*BaseModel) AfterSave

func (m *BaseModel) AfterSave(ctx context.Context, tx *sqlx.Tx) error

func (*BaseModel) Context added in v0.11.0

func (m *BaseModel) Context() context.Context

func (*BaseModel) InDatabase

func (m *BaseModel) InDatabase() bool

type Contexter added in v0.11.0

type Contexter interface {
	Context() context.Context
}

type Model

type Model interface {
	InDatabase() bool
}

Jump to

Keyboard shortcuts

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