slave_controller

package
v0.0.0-...-2e1a402 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrListenerCreat = errors.New("create slave internal_control_types listener fail")

	ErrSlaveControllerCreat = errors.New("create slave controller fail")

	ErrInvalidConnectionRequest = errors.New("invalid internal_connect_types request")

	ErrEstablishCtrlConnInvalidRequest = errors.New("invalid establish ctrl internal_connect_types request")
	ErrEstablishCtrlConnStepFail       = errors.New("establish ctrl internal_connect_types step fail")

	ErrEstablishDataConnInvalidRequest = errors.New("invalid establish internal_data_types internal_connect_types request")
	ErrEstablishDataConnStepFail       = errors.New("establish internal_data_types internal_connect_types step fail")

	ErrReconnectCtrlConnInvalidRequest = errors.New("invalid reconnect ctrl internal_connect_types request")
	ErrReconnectCtrlConnStepFail       = errors.New("reconnect ctrl internal_connect_types step fail")
)

Functions

This section is empty.

Types

type CreateSlaveControllerBody

type CreateSlaveControllerBody struct {
	SlaveControlListenerPort string
	RedisDAO                 *redis_util.RedisDAO
	Db                       *leveldb.DB
	OperationResponseChan    chan *operation.OperationResponse
}

type SlaveController

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

func NewSlaveController

func NewSlaveController(cscb CreateSlaveControllerBody) (*SlaveController, error)

func (*SlaveController) GetSlaveCtrlBlk

func (sc *SlaveController) GetSlaveCtrlBlk(slaveID string) (*slave_control_block.SlaveControlBlock, bool)

func (*SlaveController) Reload

func (sc *SlaveController) Reload() error

func (*SlaveController) SlaveDelete

func (sc *SlaveController) SlaveDelete(uuid string) error

func (*SlaveController) Start

func (sc *SlaveController) Start()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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