messagequeue

package
v0.0.0-...-d328d9e Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageQueueService

type MessageQueueService interface {
	SubscribeToManagementService(ctx context.Context) error
	DeleteSubscriptions(ctx context.Context) error
}

func NewMessageQueueService

func NewMessageQueueService(
	ctx context.Context,
	storage *models.LocalStorage,
	mqConfig common_mq_config.MessageQueueConfig,
	projectIds []uint32,
	googleApplicationCredentialsEnvVar string,
) (MessageQueueService, error)

func NewNoopMQService

func NewNoopMQService() (MessageQueueService, error)

NewNoopMQService initializes a noopMQ struct

type PubsubSubscriber

type PubsubSubscriber struct {
	// contains filtered or unexported fields
}

func NewPubsubMQService

func NewPubsubMQService(
	ctx context.Context,
	storage *models.LocalStorage,
	config PubsubSubscriberConfig,
	googleApplicationCredentialsEnvVar string,
) (*PubsubSubscriber, error)

func (*PubsubSubscriber) DeleteSubscriptions

func (u *PubsubSubscriber) DeleteSubscriptions(ctx context.Context) error

func (*PubsubSubscriber) SubscribeToManagementService

func (u *PubsubSubscriber) SubscribeToManagementService(ctx context.Context) error

type PubsubSubscriberConfig

type PubsubSubscriberConfig struct {
	Project         string
	UpdateTopicName string
	ProjectIds      []models.ProjectId
}

Jump to

Keyboard shortcuts

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