github.com/pf-qiu/concourse/v6@v6.7.3-0.20201207032516-1f455d73275f/atc/db/pagination.go (about)

     1  package db
     2  
     3  type Page struct {
     4  	From *int // inclusive
     5  	To   *int // inclusive
     6  
     7  	Limit   int
     8  	UseDate bool
     9  }
    10  
    11  type Pagination struct {
    12  	Newer *Page
    13  	Older *Page
    14  }
    15  
    16  func NewIntPtr(i int) *int {
    17  	return &i
    18  }