Back to / worker / master

package master

v5.2.0-release+incompatible (release)
Latest Go to latest
Published: Apr 16, 2020 | License: LGPL-3.0 | Module:


type Controller

type Controller struct {
	// contains filtered or unexported fields

Controller app runtime master controller

func NewMasterController

func NewMasterController(conf option.Config, store store.Storer) (*Controller, error)

NewMasterController new master controller

func (*Controller) IsLeader

func (m *Controller) IsLeader() bool

IsLeader is leader

func (*Controller) Scrape

func (m *Controller) Scrape(ch chan<- prometheus.Metric, scrapeDurationDesc *prometheus.Desc)

Scrape scrape app runtime

func (*Controller) Start

func (m *Controller) Start() error

Start start

func (*Controller) Stop

func (m *Controller) Stop()

Stop stop

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier