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(id uint16, vbno uint16)
CloseRequest(id uint16, vbno uint16)
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)
GetRuntimeStats() common.StatsInterface
ClosePossible() bool
CloseManager()
}
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 NewDcpManager(managerConfig ManagerType, id string, bucketName string, notif notifier.Observer, dcpConnConfig map[dcpConn.ConfigKey]interface{}) DcpManager
func NewDcpManagerWithContext ¶
func NewDcpManagerWithContext(ctx context.Context, managerConfig ManagerType, id string, bucketName string, notif notifier.Observer, dcpConnConfig map[dcpConn.ConfigKey]interface{}) DcpManager
func NewDcpManagerWrapper ¶
func NewDcpManagerWrapper(manager DcpManager) DcpManager
Click to show internal directories.
Click to hide internal directories.