gormpluginv2

package
v1.2.11 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQSPlugin

type SQSPlugin struct {
	SQSClient    *sqs.SQS
	MysqlSess    *gorm.DB
	QueueURI     *string // Replace with your actual SQS Queue URL
	SQSMessage   *string // Replace with your actual SQS message structure
	OldData      interface{}
	NewData      interface{}
	TriggerEvent bool
	// contains filtered or unexported fields
}

SQSPlugin is a GORM plugin for triggering SQS messages on updates

func (*SQSPlugin) Save

func (p *SQSPlugin) Save(value interface{}, column string) error

func (*SQSPlugin) Update

func (p *SQSPlugin) Update(value interface{}, column string, query string, args ...interface{}) error

Jump to

Keyboard shortcuts

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