utils

package
v0.0.0-alpha2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IOrder

type IOrder interface {
	Get() *Order
	GetOrderBy() string
	GetSortBy() string
}

IOrder -

type IPagination

type IPagination interface {
	Get() *Pagination
	GetPage() int
	GetLimit() int
}

IPagination -

type Order

type Order struct {
	OrderBy string `query:"order_by"`
	SortBy  string `query:"sort_by"`
}

Order -

func (*Order) Get

func (o *Order) Get() *Order

Get -

func (*Order) GetOrderBy

func (o *Order) GetOrderBy() string

GetOrderBy -

func (*Order) GetSortBy

func (o *Order) GetSortBy() string

GetSortBy -

type Pagination

type Pagination struct {
	Page  int `query:"page"`
	Limit int `query:"limit"`
}

Pagination -

func (*Pagination) Get

func (p *Pagination) Get() *Pagination

Get -

func (*Pagination) GetLimit

func (p *Pagination) GetLimit() int

GetLimit -

func (*Pagination) GetPage

func (p *Pagination) GetPage() int

GetPage -

type Version

type Version string

Version -

func (Version) IsSet

func (v Version) IsSet() bool

IsSet -

func (Version) String

func (v Version) String() string

String -

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL