Documentation
¶
Overview ¶
Package eqldbqueue provides small durable FIFO queues for EQLDB uploads. Queue cursors are byte offsets; acknowledged history is never rescanned.
Index ¶
- Constants
- type Entry
- type Queue
- func (q *Queue) Acknowledge(name string, endOffset int64) error
- func (q *Queue) Append(name, id string, payload any) error
- func (q *Queue) Batch(name string, maximum int) ([]Entry, error)
- func (q *Queue) DiscardBefore(cutoff time.Time) error
- func (q *Queue) Path(name string) string
- func (q *Queue) RecentIDs(name string, tailBytes int64) (map[string]struct{}, error)
Constants ¶
View Source
const ( PlaneOfSky = "plane-of-sky" Kills = "kills" Drops = "drops" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
ID string `json:"id"`
Payload json.RawMessage `json:"payload"`
EndOffset int64 `json:"-"`
}
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func (*Queue) DiscardBefore ¶
DiscardBefore removes pending launch-data entries older than cutoff and compacts the queues so their byte cursors restart at zero.
Click to show internal directories.
Click to hide internal directories.