list

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *list

Types

type Config

type Config struct {
	Offset int64
	Limit  int64
}

func (*Config) SetLimit

func (c *Config) SetLimit(limit int64) *Config

func (*Config) SetOffset

func (c *Config) SetOffset(offset int64) *Config

type DateConfig

type DateConfig struct {
	Config
	StartDate time.Time
	EndDate   time.Time
}

func (*DateConfig) SetEndDate

func (c *DateConfig) SetEndDate(endDate time.Time) *DateConfig

func (*DateConfig) SetStartDate

func (c *DateConfig) SetStartDate(startDate time.Time) *DateConfig

type DateResult

type DateResult[Type any] struct {
	Result[Type]
	StartDate time.Time
	EndDate   time.Time
}

type Result

type Result[Type any] struct {
	List          []Type `json:"list"`
	Total         int64  `json:"total"`
	FilteredTotal int64  `json:"filteredTotal"`
	Page          int64  `json:"page"`
	IsNext        bool   `json:"isNext"`
	IsPrev        bool   `json:"isPrev"`
}

Jump to

Keyboard shortcuts

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