crud_stream

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: 2 Imported by: 3

Documentation

Index

Constants

View Source
const ChannelName = "beeorm-crud-stream"
View Source
const PluginCode = "github.com/latolukasz/beeorm/plugins/crud_stream"

Variables

This section is empty.

Functions

This section is empty.

Types

type CrudEvent

type CrudEvent struct {
	EntityName string
	ID         uint64
	Action     beeorm.FlushType
	Before     beeorm.Bind
	Changes    beeorm.Bind
	MetaData   beeorm.Meta
	Updated    time.Time
}

type Options

type Options struct {
	TagName          string
	DefaultRedisPool 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, _ *beeorm.Registry) error

func (*Plugin) PluginInterfaceEntityFlushed

func (p *Plugin) PluginInterfaceEntityFlushed(engine beeorm.Engine, event beeorm.EventEntityFlushed, cacheFlusher beeorm.FlusherCacheSetter)

func (*Plugin) PluginInterfaceEntityFlushing

func (p *Plugin) PluginInterfaceEntityFlushing(engine beeorm.Engine, event beeorm.EventEntityFlushing)

func (*Plugin) PluginInterfaceInitRegistry

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

Jump to

Keyboard shortcuts

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