rabbit

package
v3.4.7 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaasClient

type MaasClient interface {
	// GetOrCreateVhost allows to get or create (in case the vhost does not exist) vhost by classifier
	GetOrCreateVhost(ctx context.Context, classifier classifier.Keys) (*model.Vhost, error)

	// GetVhost allows to get Vhost by classifier, returns non-empty vhost only if it is present in MaaS
	// or nil in case vhost with provided classifier does not exist
	// classifier - must be equal to the classifier of the target vhost to be retrieved
	GetVhost(ctx context.Context, classifier classifier.Keys) (*model.VhostConfig, error)

	// BuildHeaders should be used to propagate context to rabbit messages
	BuildHeaders(ctxData map[string]string) amqp.Table
}

func NewClient

func NewClient(namespace string, maasAgentUrl string, httpClient *resty.Client) MaasClient

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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