reconciler

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResultConsulNotHealthy     = resultType("consul_not_healthy")
	ResultMasterLinkDown       = resultType("master_link_down")
	ResultMasterSyncInProgress = resultType("master_sync_in_progress")
	ResultMissingState         = resultType("missing_state")
	ResultNoMasterElected      = resultType("no_master_elected")
	ResultRedisNotHealthy      = resultType("redis_not_healthy")
	ResultRunAsMaster          = resultType("run_as_master")
	ResultRunAsSlave           = resultType("run_as_slave")
	ResultUnknown              = resultType("unknown")
	ResultUpdateService        = resultType("consul_update_service")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	sync.Mutex
	// contains filtered or unexported fields
}

reconciler will take a stream of changes happening to consul and redis and decide what actions that should be taken

func NewReconciler

func NewReconciler(c *cli.Context) (*Reconciler, error)

setup returns the default configuration for the ReSeC

func (*Reconciler) MarshalJSON added in v1.0.0

func (r *Reconciler) MarshalJSON() ([]byte, error)

Marshalling to JSON is used when sendnig debug signal to the process

func (*Reconciler) Run

func (r *Reconciler) Run()

Run starts the procedure

Jump to

Keyboard shortcuts

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