inject

package
v2.3.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2018 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fields

type Fields struct {
	FrequencyPlan string
	Bridge        string
}

Fields to inject

type Inject

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

Inject fields into all status messages

func NewInject

func NewInject(fields Fields) *Inject

NewInject returns a middleware that injects fields into all status messages

func (*Inject) HandleStatus

func (i *Inject) HandleStatus(ctx middleware.Context, msg *types.StatusMessage) error

HandleStatus inserts fields into status messages if not present

Jump to

Keyboard shortcuts

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