nozzle

package
v0.0.0-...-ff51d6a Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthTokenFetcher

type AuthTokenFetcher interface {
	FetchAuthToken() string
}

AuthTokenFetcher is an interface for fetching an auth token from uaa

type Nozzle

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

Nozzle is the struct that holds the state of the nozzle

func NewNozzle

func NewNozzle(config *config.Config, tokenFetcher AuthTokenFetcher, log *gosteno.Logger) *Nozzle

NewNozzle creates a new nozzle

func (*Nozzle) AlertSlowConsumerError

func (n *Nozzle) AlertSlowConsumerError()

AlertSlowConsumerError sets the slow consumer alert

func (*Nozzle) ResetSlowConsumerError

func (n *Nozzle) ResetSlowConsumerError()

ResetSlowConsumerError resets the alert

func (*Nozzle) Start

func (n *Nozzle) Start() error

Start starts the nozzle

func (*Nozzle) Stop

func (n *Nozzle) Stop()

Stop stops the Nozzle

Jump to

Keyboard shortcuts

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