controllers

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2017 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 CommonController

type CommonController struct {
	Conf      *config.AlertConfig
	Queue     workqueue.RateLimitingInterface
	Informer  cache.SharedIndexInformer
	Handler   handlers.Handler
	Name      string
	ListWatch cache.ListerWatcher
	ObjType   runtime.Object
	StopCh    chan struct{}
	// contains filtered or unexported fields
}

func (*CommonController) Run

func (c *CommonController) Run(stopCh <-chan struct{})

func (*CommonController) Start

func (c *CommonController) Start(wg *sync.WaitGroup)

func (*CommonController) Stop

func (c *CommonController) Stop()

type Controller

type Controller interface {
	Start(wg *sync.WaitGroup)
	Stop()
	Init(c *config.AlertConfig, handler handlers.Handler) Controller
	HandlerName() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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