manager

package
v0.2.22 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UpstreamChecker

type UpstreamChecker struct {
	// Register is a channel via which you can register additional consumers
	Register chan chan bool

	ManagerURL   string
	PipelineHash string
	ProcessName  string
	// contains filtered or unexported fields
}

UpstreamChecker is the structure responsible for checking the state of upstream pipeline components by asking the manager It notifies all its consumber which can be registered

func NewUpstreamChecker

func NewUpstreamChecker(managerURL, pipelineHash, processName string, retries int) UpstreamChecker

NewUpstreamChecker creates a new instance of UpstreamChecker and intializes its necessary values

func (*UpstreamChecker) Start

func (checker *UpstreamChecker) Start(wg *sync.WaitGroup)

Start asychronously calls StartBlocking via Gorouting

func (*UpstreamChecker) StartBlocking

func (checker *UpstreamChecker) StartBlocking()

StartBlocking starts the main loop of the UpstreamChecker

Jump to

Keyboard shortcuts

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