Documentation ¶
Overview ¶
Package gormi provides interface so forks of gorm can be used to work with gormetrics. See github.com/profects/gormetrics/gormi/adapter/unforked for an example of how to use these interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Callback ¶
type Callback interface { Create() CallbackProcessor Delete() CallbackProcessor Query() CallbackProcessor Update() CallbackProcessor }
Callback is an interface which can be satisfied by wrapping gorm.Callback.
type CallbackProcessor ¶
type CallbackProcessor interface { After(callbackName string) CallbackProcessor Register(callbackName string, callback func(scope Scope)) }
CallbackProcessor is an interface which can be satisfied by wrapping gorm.CallbackProcessor.
Click to show internal directories.
Click to hide internal directories.