| 752 | } |
| 753 | |
| 754 | type 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 | |
| 772 | func (pcc *PermanodeContinueConstraint) checkValid() error { |
| 773 | if pcc.LastMod.IsZero() == pcc.LastCreated.IsZero() { |
nothing calls this directly
no outgoing calls
no test coverage detected