controller

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

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
}

func New

func New(s *storage.Storage, config *config.Config) (*Controller, error)

func (*Controller) GetFailOver

func (c *Controller) GetFailOver() *failover.FailOver

func (*Controller) GetMigrate

func (c *Controller) GetMigrate() *migrate.Migrator

func (*Controller) Start

func (c *Controller) Start() error

func (*Controller) Stop

func (c *Controller) Stop() error

type Syncer

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

Syncer would sync the cluster topology information to cluster nodes when it's changed.

func NewSyncer

func NewSyncer(s *storage.Storage) *Syncer

func (*Syncer) Close

func (syncer *Syncer) Close()

func (*Syncer) Notify

func (syncer *Syncer) Notify(event *storage.Event)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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