Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTryLater = errors.New("dcp consumer not spawned try later")
)
Functions ¶
func NewDummyManager ¶
func NewDummyManager() dummy
Types ¶
type DcpManager ¶
type DcpManager interface { DoneDcpEvent(event *dcpConn.DcpEvent) StartStreamReq(sr *dcpConn.StreamReq) error PauseStreamReq(sr *dcpConn.StreamReq) CloseRequest(sr *dcpConn.StreamReq) (*dcpConn.StreamReq, error) GetFailoverLog(vbs []uint16) (map[uint16]dcpConn.FailoverLog, error) GetSeqNumber(vbs []uint16, collectionID string) (map[uint16]uint64, error) RegisterID(id uint16, sendChannel chan<- *dcpConn.DcpEvent) DeregisterID(id uint16) CloseManager() CloseConditional() bool }
DcpManager manages dcp connection It will send the dcp messages to the receiver It will manage all the connection till caller calls close dcp
func NewDcpManager ¶
func NewDcpManagerWrapper ¶
func NewDcpManagerWrapper(manager DcpManager) DcpManager
Click to show internal directories.
Click to hide internal directories.