Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrObjectPtr errs.Error = "object must be a pointer to a struct" ErrObjectInvalid errs.Error = "object is invalid or nil, the object must be a valid pointer to a struct" ErrModelEmbedded errs.Error = "object does not have an embedded Model field, the object must embed the Model struct" ErrModelAdressable errs.Error = "the Model is not addressable, the object must embed the Model struct" ErrModelType errs.Error = "object has a non- Model type embedded as the Model field, the object must embed the models.Model struct" )
Variables ¶
View Source
var (
SIGNAL_MODEL_SETUP = model_signal_pool.Get("models.Model.setup")
)
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func ExtractModel ¶ added in v1.1.0
func (*Model) ModelDataStore ¶
func (m *Model) ModelDataStore() queries.ModelDataStore
func (*Model) SaveFields ¶
type ModelSignal ¶ added in v1.1.0
type ModelSignal struct { SignalInfo ModelSignalInfo Model *Model Object attrs.Definer }
type ModelSignalFlag ¶ added in v1.1.0
type ModelSignalFlag uint
const ( ModelSignalFlagNone ModelSignalFlag = 0 FlagModelReset ModelSignalFlag = iota )
type ModelSignalInfo ¶ added in v1.1.0
type ModelSignalInfo struct { Flags ModelSignalFlag Data map[string]any }
Click to show internal directories.
Click to hide internal directories.