log_table

package
v2.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

func GetEntityLogs(engine beeorm.Engine, entitySchema beeorm.EntitySchema, entityID uint64, pager *beeorm.Pager, where *beeorm.Where) []EntityLog

type Options

type Options struct {
	TagName          string
	DefaultMySQLPool string
}

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func Init

func Init(options *Options) *Plugin

func (*Plugin) GetCode

func (p *Plugin) GetCode() string

func (*Plugin) InterfaceInitEntitySchema

func (p *Plugin) InterfaceInitEntitySchema(schema beeorm.SettableEntitySchema, registry *beeorm.Registry) error

func (*Plugin) PluginInterfaceInitRegistry

func (p *Plugin) PluginInterfaceInitRegistry(registry *beeorm.Registry)

func (*Plugin) PluginInterfaceTableSQLSchemaDefinition

func (p *Plugin) PluginInterfaceTableSQLSchemaDefinition(engine beeorm.Engine, sqlSchema *beeorm.TableSQLSchemaDefinition) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL