consts

package
v0.0.14 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConsumerKey      = "Consumer-Key"
	PublisherKey     = "Publisher-Key"
	ContentType      = "Content-Type"
	AwaitResponseKey = "Await-Response"
	QueueKey         = "Topic"
	TypeJson         = "application/json; charset=utf-8"
	TypeHtml         = "text/html; charset=utf-8"
	HeaderKey        = "headers"
	TriggerNode      = "triggerNode"
)

Functions

This section is empty.

Types

type CMD

type CMD byte
const (
	PING CMD = iota + 1
	SUBSCRIBE
	SUBSCRIBE_ACK

	MESSAGE_SEND
	MESSAGE_RESPONSE
	MESSAGE_DENY
	MESSAGE_ACK
	MESSAGE_ERROR

	PUBLISH
	PUBLISH_ACK
	RESPONSE

	CONSUMER_PAUSE
	CONSUMER_RESUME
	CONSUMER_STOP
	CONSUMER_UPDATE

	CONSUMER_PAUSED
	CONSUMER_RESUMED
	CONSUMER_STOPPED
	CONSUMER_UPDATED
)

func (CMD) IsValid

func (c CMD) IsValid() bool

func (CMD) String

func (c CMD) String() string

type ConsumerState

type ConsumerState byte
const (
	ConsumerStateActive ConsumerState = iota
	ConsumerStatePaused
	ConsumerStateStopped
)

Jump to

Keyboard shortcuts

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