manager

package
v0.0.0-...-aba326a Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package manager provides implementations of queue managers, which act as an index of various FIFO queues.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Instrumented

func Instrumented(m q.Manager, o ...Option) q.Manager

Instrumented returns a queue manager optionally instrumented with logging and/or metrics for both the manager itself and the queues it manages.

func New

func New() q.Manager

New returns a new in-memory queue manager.

Types

type Option

type Option func(*instrumented)

An Option represents an optional argument to an instrumented manager.

func WithLogger

func WithLogger(l *zap.Logger) Option

WithLogger instruments a queue manager with a zap Logger.

func WithMetrics

func WithMetrics(mx q.Metrics) Option

WithMetrics instruments a queue manager with Metrics.

Jump to

Keyboard shortcuts

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