models

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 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) InDatabase

func (m *BaseModel) InDatabase() bool

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