Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func MerkleHashFunc ¶
func Uint16ToBytes ¶
Types ¶
type BitsetBool ¶ added in v1.3.2
type BitsetBool []bool
func BitsetBoolFromBytes ¶ added in v1.3.2
func BitsetBoolFromBytes(b []byte) BitsetBool
func (*BitsetBool) GetBit ¶ added in v1.3.2
func (b *BitsetBool) GetBit(i int) bool
func (*BitsetBool) Len ¶ added in v1.3.2
func (b *BitsetBool) Len() int
func (*BitsetBool) SetBit ¶ added in v1.3.2
func (b *BitsetBool) SetBit(i int, value bool)
func (*BitsetBool) ToBytes ¶ added in v1.3.2
func (b *BitsetBool) ToBytes() []byte
type Pagination ¶
type Pagination struct {
Meta metaPagination `json:"meta"`
}
func NewPagination ¶
func NewPagination(currentPage, perPage, total int) Pagination
type PaginationQuery ¶
type PaginationQuery struct { Page int `form:"page" json:"page"` PerPage int `form:"per_page" json:"per_page"` }
func NewPaginationQuery ¶
func NewPaginationQuery(ctx *gin.Context) (PaginationQuery, error)
func (PaginationQuery) Skip ¶
func (p PaginationQuery) Skip() int
Click to show internal directories.
Click to hide internal directories.