Documentation ¶ Index ¶ type BaseModel func (m *BaseModel) AfterLoad(ctx context.Context, tx *sqlx.Tx) error func (m *BaseModel) AfterSave(ctx context.Context, tx *sqlx.Tx) error func (m *BaseModel) Context() context.Context func (m *BaseModel) InDatabase() bool type Contexter type Model 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 } Source Files ¶ View all Source files model.go Click to show internal directories. Click to hide internal directories.