services

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Overview

Package services watchs for services annotations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller are started in a persistent goroutine at program launch, and are responsible for watching resources, and for calling worker when those resources changes.

func NewController

func NewController(conf *config.KnpConfig, w worker.Worker) *Controller

NewController creates and initialize the service controller

func (*Controller) Start

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

Start initialize and launch a controller. The sync.WaitGroup argument is expected to be aknowledged (Done()) at controller termination, when Stop() is called.

func (*Controller) Stop

func (c *Controller) Stop()

Stop ends a controller and notify the controller's WaitGroup

Jump to

Keyboard shortcuts

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