discovery

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintQueueTable

func PrintQueueTable(queues []QueueInfo)

PrintQueueTable prints a formatted table of queues.

func PrintTopicTable

func PrintTopicTable(topics []TopicInfo)

PrintTopicTable prints a formatted table of topics.

Types

type AuthRule

type AuthRule struct {
	KeyName    string
	Rights     []string
	PrimaryKey string
}

AuthRule holds an authorization rule.

type QueueInfo

type QueueInfo struct {
	Name                   string
	Status                 string
	MaxSizeMB              int32
	LockDuration           string
	RequiresSession        bool
	DeadLetteringOnExpiry  bool
	RequiresDupDetection   bool
	EnablePartitioning     bool
	MaxDeliveryCount       int32
	ActiveMessageCount     int64
	DeadLetterMessageCount int64
	ScheduledMessageCount  int64
	TotalMessageCount      int64
	SizeInBytes            int64
	AuthRules              []AuthRule
}

QueueInfo holds discovered queue metadata.

func EnumerateQueues

func EnumerateQueues(c *conn.SBConnection) ([]QueueInfo, error)

type SubscriptionInfo

type SubscriptionInfo struct {
	Name               string
	Status             string
	LockDuration       string
	RequiresSession    bool
	MaxDeliveryCount   int32
	DeadLetterOnExpiry bool
	ActiveMessageCount int64
	DeadLetterMsgCount int64
	TotalMessageCount  int64
}

SubscriptionInfo holds subscription metadata.

func ListSubscriptions

func ListSubscriptions(c *conn.SBConnection, topicName string) ([]SubscriptionInfo, error)

ListSubscriptions lists subscriptions for a topic.

type TopicInfo

type TopicInfo struct {
	Name                 string
	Status               string
	MaxSizeMB            int32
	RequiresDupDetection bool
	EnablePartitioning   bool
	SupportOrdering      bool
	SubscriptionCount    int32
	ScheduledMsgCount    int64
	SizeInBytes          int64
	Subscriptions        []SubscriptionInfo
	AuthRules            []AuthRule
}

TopicInfo holds discovered topic metadata.

func EnumerateTopics

func EnumerateTopics(c *conn.SBConnection) ([]TopicInfo, error)

EnumerateTopics lists all topics in the namespace.

Jump to

Keyboard shortcuts

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