conyer

package
v0.0.0-...-d807b53 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildQueuingConsumer = cony.NewConsumer(
	BuildQueuingPhaseQueue,
	cony.AutoAck(),
	cony.AutoTag(),
	cony.Qos(20),
)
View Source
var BuildQueuingPhaseQueue = &cony.Queue{
	Name:       "pipeline_build_queuing_phase",
	Durable:    true,
	AutoDelete: false,
	Exclusive:  false,
	Args:       nil,
}

BuildQueuingPhaseQueue pipeline_build_queuing_phase

View Source
var UciInternalExchange = cony.Exchange{
	Name:       "uci.internal.exchange",
	Kind:       "direct",
	Durable:    true,
	AutoDelete: false,
	Args:       nil,
}
View Source
var UciInternalExchangeAndBuildQueuingPhaseQueueBinding = cony.Binding{
	Queue:    BuildQueuingPhaseQueue,
	Exchange: UciInternalExchange,
	Key:      string(pipeline.BuildQueuing),
	Args:     nil,
}
View Source
var UciInternalExchangeAndWaitForBorrowingPhaseQueueBinding = cony.Binding{
	Queue:    WaitForBorrowingPhaseQueue,
	Exchange: UciInternalExchange,
	Key:      string(pipeline.WaitForBorrowing),
	Args:     nil,
}
View Source
var UciInternalExchangeAndWaitForDispatchingPhaseQueueBinding = cony.Binding{
	Queue:    WaitForDispatchingPhaseQueue,
	Exchange: UciInternalExchange,
	Key:      string(pipeline.WaitForDispatching),
	Args:     nil,
}
View Source
var WaitForBorrowingConsumer = cony.NewConsumer(
	WaitForBorrowingPhaseQueue,
	cony.AutoAck(),
	cony.AutoTag(),
	cony.Qos(20),
)
View Source
var WaitForBorrowingPhaseQueue = &cony.Queue{
	Name:       "pipeline_wait_for_borrowing_phase",
	Durable:    true,
	AutoDelete: false,
	Exclusive:  false,
	Args:       nil,
}

WaitForBorrowingPhaseQueue pipeline_wait_for_borrowing_phase

View Source
var WaitForDispatchingConsumer = cony.NewConsumer(
	WaitForDispatchingPhaseQueue,
	cony.AutoAck(),
	cony.AutoTag(),
	cony.Qos(20),
)
View Source
var WaitForDispatchingPhaseQueue = &cony.Queue{
	Name:       "pipeline_wait_for_dispatching_phase",
	Durable:    true,
	AutoDelete: false,
	Exclusive:  false,
	Args:       nil,
}

WaitForDispatchingPhaseQueue pipeline_wait_for_dispatching_phase

Functions

func New

func New(opt ...cony.ClientOpt) *cony.Client

Types

type BaseListener

type BaseListener struct {
	IConsumer IListener
}

func NewBaseListener

func NewBaseListener(IConsumer IListener) *BaseListener

func (*BaseListener) Handler

func (b *BaseListener) Handler()

type BuildQueuingListener

type BuildQueuingListener struct {
}

func NewBuildQueuingListener

func NewBuildQueuingListener() *BuildQueuingListener

func (*BuildQueuingListener) Concurrent

func (b *BuildQueuingListener) Concurrent() int

func (*BuildQueuingListener) ConnectionSize

func (b *BuildQueuingListener) ConnectionSize() int

func (*BuildQueuingListener) Consumer

func (b *BuildQueuingListener) Consumer() *cony.Consumer

func (*BuildQueuingListener) Handle

func (b *BuildQueuingListener) Handle(msg amqp.Delivery)

type IListener

type IListener interface {
	ConnectionSize() int
	Concurrent() int
	Handle(delivery amqp.Delivery)
	Consumer() *cony.Consumer
}

type WaitForBorrowingListener

type WaitForBorrowingListener struct {
}

func NewWaitForBorrowingListener

func NewWaitForBorrowingListener() *WaitForBorrowingListener

func (*WaitForBorrowingListener) Concurrent

func (w *WaitForBorrowingListener) Concurrent() int

func (*WaitForBorrowingListener) ConnectionSize

func (w *WaitForBorrowingListener) ConnectionSize() int

func (*WaitForBorrowingListener) Consumer

func (w *WaitForBorrowingListener) Consumer() *cony.Consumer

func (*WaitForBorrowingListener) Handle

func (w *WaitForBorrowingListener) Handle(msg amqp.Delivery)

type WaitForDispatchingListener

type WaitForDispatchingListener struct {
}

func NewWaitForDispatchingListener

func NewWaitForDispatchingListener() *WaitForDispatchingListener

func (*WaitForDispatchingListener) Concurrent

func (w *WaitForDispatchingListener) Concurrent() int

func (*WaitForDispatchingListener) ConnectionSize

func (w *WaitForDispatchingListener) ConnectionSize() int

func (*WaitForDispatchingListener) Consumer

func (w *WaitForDispatchingListener) Consumer() *cony.Consumer

func (*WaitForDispatchingListener) Handle

func (w *WaitForDispatchingListener) Handle(msg amqp.Delivery)

Jump to

Keyboard shortcuts

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