Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CmdWaitSlaveSync is command given to slave syncer. // It indicates to the syncer that we want to wait for slave syncer to finish it's work CmdWaitSlaveSync // CmdRestartSlaveSyncer is command to restart the slave syncer CmdRestartSlaveSyncer // CmdKillMe is command to kill the slave syncer CmdKillMe )
Variables ¶
View Source
var ( // ErrSendCmdTimeout returned when the command doesn't get any response after // some amount of time ErrSendCmdTimeout = errors.New("send command timed out") )
View Source
var ( // ErrSlaveSyncTimeout returned when slave syncer doesn't give response // until some amount of time ErrSlaveSyncTimeout = errors.New("slave sync timed out") )
Functions ¶
This section is empty.
Types ¶
type AggComm ¶
type AggComm struct {
// contains filtered or unexported fields
}
AggComm defines communication channels between aggregation producer and consumer/processor
func (*AggComm) Destroy ¶
func (comm *AggComm) Destroy()
Destroy destroys this communication channel. It also means destroying the consumer
type AggProcessorConfig ¶
AggProcessorConfig defines config given to the aggregation processor
type AggProcessorReq ¶
type AggProcessorReq struct { Comm *AggComm Config AggProcessorConfig }
AggProcessorReq defines request to the processor provider
type MQ ¶
type MQ struct { NeedProcessorCh chan AggProcessorReq NeedProcessorResp chan error Comms map[string]*AggComm // contains filtered or unexported fields }
MQ defines this message queue
func (*MQ) AskProcessor ¶
func (mq *MQ) AskProcessor(apc AggProcessorConfig) (*AggComm, error)
AskProcessor as for aggregation processor. we currently only have slave syncer
Click to show internal directories.
Click to hide internal directories.