events

package
v0.0.0-...-91471a5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppEvent

type AppEvent struct {
	Envelope *events.Envelope
	App      cfclient.App
}

type Fetcher

type Fetcher struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewFetcher

func NewFetcher(
	config *FetcherConfig,
	appEventChan chan *AppEvent,
	newAppInstanceChan chan string,
	deletedAppInstanceChan chan string,
	errorChan chan error,
) *Fetcher

func (*Fetcher) RefreshAuthToken

func (m *Fetcher) RefreshAuthToken() (token string, authError error)

RefreshAuthToken satisfies the `consumer.TokenRefresher` interface.

func (*Fetcher) Run

func (m *Fetcher) Run() error

type FetcherConfig

type FetcherConfig struct {
	CFClientConfig  *cfclient.Config
	EventTypes      []sonde_events.Envelope_EventType
	UpdateFrequency time.Duration
}

type FetcherProcess

type FetcherProcess interface {
	Run() error
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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