Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_CHAIN = "dimension"
View Source
const MAX_LIMIT = 30
Variables ¶
View Source
var DefaultPaginationCond = PaginationCond{ Limit: 0, Asc: false, After: ^uint(0) >> 1, }
Functions ¶
This section is empty.
Types ¶
type Notice ¶
type Notice interface {
Notices(chain string, startTs int64, cond PaginationCond) ([]NoticeItem, error)
}
func NewService ¶
type NoticeItem ¶
type PaginationCond ¶
type PaginationCond struct { After uint `json:"after,omitempty"` Limit uint `json:"limit,omitempty"` Asc bool `json:"asc,omitempty"` }
PaginationCond contains pagination conditions Limit is the maximum number of items to return Asc is the order of items to return (default: descending order)
func (*PaginationCond) Trim ¶
func (p *PaginationCond) Trim()
Click to show internal directories.
Click to hide internal directories.