event

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2016 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 4 Imported by: 0

Documentation

Overview

Package handler deals with appropriately reacting to all ACS messages as well as maintaining the connection to ACS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACSDeregisterInstanceStream

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

ACSDeregisterInstanceStream is the event stream for deregistering container instance event that was received from ACS.

func NewACSDeregisterInstanceStream

func NewACSDeregisterInstanceStream() *ACSDeregisterInstanceStream

func (*ACSDeregisterInstanceStream) EventChannel

func (events *ACSDeregisterInstanceStream) EventChannel() chan struct{}

EventChannel returns the channel the event stream is listening

func (*ACSDeregisterInstanceStream) StartListening

func (events *ACSDeregisterInstanceStream) StartListening(ctx context.Context)

StartListening start listening to the event stream and handle received event

func (*ACSDeregisterInstanceStream) Subscribe

func (events *ACSDeregisterInstanceStream) Subscribe(handler eventHandler)

Subscribe adds the handler to be called into ACSDeregisterInstanceStream

func (*ACSDeregisterInstanceStream) Unsubscribe

func (events *ACSDeregisterInstanceStream) Unsubscribe(handlerToUnsubscribe eventHandler)

Unsubscribe deletes the handler from the ACSDeregisterInstanceStream

Jump to

Keyboard shortcuts

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