pkg

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	ID               uuid.UUID    `db:"id"`
	CreatedTimestamp time.Time    `db:"created_timestamp"`
	UpdatedTimestamp sql.NullTime `db:"updated_timestamp"`
	Status           string       `db:"status"`
	Topic            string       `db:"topic"`
	Partition        int32        `db:"partition"`
	Key              string       `db:"key"`
	Message          []byte       `db:"message"`
	Headers          []Header     `db:"headers"`
	InstanceID       uuid.UUID    `db:"instance_id"`
}

type EventStatus

type EventStatus int8
const (
	PENDING EventStatus = iota
	SENT
)

func (EventStatus) String

func (es EventStatus) String() string
type Header struct {
	Key   string          `json:"key"`
	Value json.RawMessage `json:"value"`
}

Jump to

Keyboard shortcuts

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