MCPcopy
hub / github.com/perkeep/perkeep / PermanodeContinueConstraint

Struct PermanodeContinueConstraint

pkg/search/query.go:754–770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

752}
753
754type PermanodeContinueConstraint struct {
755 // LastMod if non-zero is the modtime of the last item
756 // that was seen. One of this or LastCreated will be set.
757 LastMod time.Time
758
759 // LastCreated if non-zero is the creation time of the last
760 // item that was seen.
761 LastCreated time.Time
762
763 // Last is the last blobref that was shown at the time
764 // given in ModLessEqual or CreateLessEqual.
765 // This is used as a tie-breaker.
766 // If the time is equal, permanodes <= this are not matched.
767 // If the time is past this in the scroll position, then this
768 // field is ignored.
769 Last blob.Ref
770}
771
772func (pcc *PermanodeContinueConstraint) checkValid() error {
773 if pcc.LastMod.IsZero() == pcc.LastCreated.IsZero() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected