gateway

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker interface {
	FindLeader() (bool, string)
	HeartbeatUpdate(string) bool
}

Broker node interface

func NewBroker

func NewBroker() Broker

NewBroker

type Leader

type Leader interface {
	AmILeader() bool
	GetApps([]models.Node) []models.AppService
	StepDown(models.Node, models.AppService) bool
	StepUp(models.Node, models.AppService) bool
}

Leader node interface

func NewLeader

func NewLeader() Leader

NewLeader

Jump to

Keyboard shortcuts

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