Documentation
¶
Overview ¶
Package queue provides the ability for Vela to integrate with different supported Queue backends.
Usage:
import "github.com/go-vela/server/queue"
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service interface { // Publish defines a function that inserts an // item to the specified route in the queue. Publish(string, []byte) error // Publish defines a function that decides which // route a build gets placed within the queue. Route(*pipeline.Worker) (string, error) }
Service represents the interface for Vela integrating with the different supported Queue backends.
func FromContext ¶
FromContext returns the queue Service associated with this context.
Click to show internal directories.
Click to hide internal directories.