/
plugin.go
32 lines (25 loc) · 953 Bytes
/
plugin.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package beeorm
type Plugin interface {
GetCode() string
}
type PluginInterfaceInitRegistry interface {
PluginInterfaceInitRegistry(registry *Registry)
}
type PluginInterfaceInitEntitySchema interface {
InterfaceInitEntitySchema(schema SettableEntitySchema, registry *Registry) error
}
type PluginInterfaceTableSQLSchemaDefinition interface {
PluginInterfaceTableSQLSchemaDefinition(engine Engine, sqlSchema *TableSQLSchemaDefinition) error
}
type PluginInterfaceEntityFlushing interface {
PluginInterfaceEntityFlushing(engine Engine, event EventEntityFlushing)
}
type PluginInterfaceEntityFlushed interface {
PluginInterfaceEntityFlushed(engine Engine, event EventEntityFlushed, cacheFlusher FlusherCacheSetter)
}
type PluginInterfaceEntitySearch interface {
PluginInterfaceEntitySearch(engine Engine, schema EntitySchema, where *Where) *Where
}
type PluginInterfaceEngineCreated interface {
PluginInterfaceEngineCreated(engine Engine)
}