entity

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Group    string
	ID       uint64
	Priority int64
	Content  string
	Metadata map[string]string

	QueueName string `json:"QueueName,omitempty"`
	QueueType string `json:"QueueType,omitempty"`
}

func MessageFromBytes

func MessageFromBytes(data []byte) (*Message, error)

func (*Message) ToBytes

func (m *Message) ToBytes() ([]byte, error)

func (*Message) UpdatePriority

func (m *Message) UpdatePriority(newPriority int64)

type QueueConfig

type QueueConfig struct {
	Name string
	Type string
}

func QueueConfigFromBytes

func QueueConfigFromBytes(data []byte) (*QueueConfig, error)

func (*QueueConfig) ToBytes

func (qc *QueueConfig) ToBytes() ([]byte, error)

Jump to

Keyboard shortcuts

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