MCPcopy Create free account
hub / github.com/astercloud/aster / GetCursor

Method GetCursor

pkg/events/bus.go:465–469  ·  view source on GitHub ↗

GetCursor 获取当前cursor

()

Source from the content-addressed store, hash-verified

463
464// GetCursor 获取当前cursor
465func (eb *EventBus) GetCursor() int64 {
466 eb.mu.RLock()
467 defer eb.mu.RUnlock()
468 return eb.cursor
469}
470
471// GetLastBookmark 获取最后一个bookmark
472func (eb *EventBus) GetLastBookmark() *types.Bookmark {

Callers 3

mainFunction · 0.95
StatusMethod · 0.80
GetEventsSinceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected