MCPcopy Create free account
hub / github.com/docker/docker-agent / LastEventSeq

Method LastEventSeq

pkg/server/session_manager.go:166–172  ·  view source on GitHub ↗

LastEventSeq returns the most recent event sequence number for sessionID, so a snapshot can advertise the exact point from which a client should tail. Returns 0 and false when no event log exists.

(sessionID string)

Source from the content-addressed store, hash-verified

164// so a snapshot can advertise the exact point from which a client should tail.
165// Returns 0 and false when no event log exists.
166func (sm *SessionManager) LastEventSeq(sessionID string) (uint64, bool) {
167 pe, ok := sm.eventLogs.Load(sessionID)
168 if !ok {
169 return 0, false
170 }
171 return pe.log.lastSeq(), true
172}
173
174// RegisterFollowUpInjector registers fn as the follow-up delivery path for an
175// attached sessionID. When set, [SessionManager.FollowUpSession] routes

Calls 2

LoadMethod · 0.80
lastSeqMethod · 0.80