Documentation ¶
Index ¶
- Constants
- func NewEventHandler(engine beeorm.Engine) beeorm.EventConsumerHandler
- type EntityLog
- type Options
- type Plugin
- func (p *Plugin) GetCode() string
- func (p *Plugin) InterfaceInitEntitySchema(schema beeorm.SettableEntitySchema, registry *beeorm.Registry) error
- func (p *Plugin) PluginInterfaceInitRegistry(registry *beeorm.Registry)
- func (p *Plugin) PluginInterfaceTableSQLSchemaDefinition(engine beeorm.Engine, sqlSchema *beeorm.TableSQLSchemaDefinition) error
Constants ¶
View Source
const ConsumerGroupName = "log-tables-consumer"
View Source
const PluginCode = "github.com/latolukasz/beeorm/plugins/log_table"
Variables ¶
This section is empty.
Functions ¶
func NewEventHandler ¶
func NewEventHandler(engine beeorm.Engine) beeorm.EventConsumerHandler
Types ¶
type EntityLog ¶
type EntityLog struct { LogID uint64 EntityID uint64 Date time.Time MetaData map[string]interface{} // change to Bind after some time Before map[string]interface{} After map[string]interface{} }
func GetEntityLogs ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) InterfaceInitEntitySchema ¶
func (*Plugin) PluginInterfaceInitRegistry ¶
func (p *Plugin) PluginInterfaceInitRegistry(registry *beeorm.Registry)
func (*Plugin) PluginInterfaceTableSQLSchemaDefinition ¶
Click to show internal directories.
Click to hide internal directories.