models

package
v0.0.0-...-72c5f26 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageModel

type MessageModel struct {
}

func (*MessageModel) Insert

func (messageModel *MessageModel) Insert(config db.MysqlConfig, subID string, msg *pubsub.Message) error

func (*MessageModel) IsDuplicate

func (messageModel *MessageModel) IsDuplicate(config db.MysqlConfig, subID string, msg *pubsub.Message) (bool, error)

func (*MessageModel) Select

func (messageModel *MessageModel) Select(config db.MysqlConfig, selectQuery string) ([]MessageRow, error)

func (*MessageModel) UpdateDeliveryAttempt

func (messageModel *MessageModel) UpdateDeliveryAttempt(config db.MysqlConfig, subID string, msg *pubsub.Message) error

type MessageRow

type MessageRow struct {
	MessageId       sql.NullString
	Subscription    sql.NullString
	Data            sql.NullString
	DecodedData     sql.NullString
	Attribute       sql.NullString
	PublishTime     sql.NullTime
	DeliveryAttempt sql.NullInt32
	OrderingKey     sql.NullString
}

Jump to

Keyboard shortcuts

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