messagequeue

package
v0.0.0-...-649e5f6 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 0 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageQueueConfig

type MessageQueueConfig struct {
	// The type of Message Queue for event updates
	Kind MessageQueueKind `json:"kind" default:""`

	// PubSubConfig captures the config related to publishing and subscribing to a PubSub Message Queue
	PubSubConfig *PubSubConfig `json:"pub_sub_config"`
}

type MessageQueueKind

type MessageQueueKind = string

MessageQueueKind describes the message queue for transmitting event updates to and fro Treatment Service

const (
	// NoopMQ is a No-Op Message Queue
	NoopMQ MessageQueueKind = ""
	// PubSubMQ is a PubSub Message Queue
	PubSubMQ MessageQueueKind = "pubsub"
)

type PubSubConfig

type PubSubConfig struct {
	Project   string `json:"project" default:"dev" validate:"required"`
	TopicName string `json:"topic_name" default:"xp-update" validate:"required"`
	// PubSubTimeoutSeconds is the duration beyond which subscribing to a topic will time out
	PubSubTimeoutSeconds int `json:"pub_sub_timeout_seconds" default:"30" validate:"required"`
}

Jump to

Keyboard shortcuts

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