data

package
v2.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONRaw

type JSONRaw json.RawMessage

func (*JSONRaw) MarshalJSON

func (j *JSONRaw) MarshalJSON() ([]byte, error)

func (*JSONRaw) Scan

func (j *JSONRaw) Scan(src interface{}) error

func (*JSONRaw) UnmarshalJSON

func (j *JSONRaw) UnmarshalJSON(data []byte) error

func (JSONRaw) Value

func (json JSONRaw) Value() (driver.Value, error)

type LocalDate

type LocalDate time.Time

func (LocalDate) MarshalJSON

func (t LocalDate) MarshalJSON() ([]byte, error)

func (*LocalDate) Scan

func (t *LocalDate) Scan(v interface{}) error

func (LocalDate) String

func (t LocalDate) String() string

func (*LocalDate) UnmarshalJSON

func (t *LocalDate) UnmarshalJSON(data []byte) (err error)

func (LocalDate) Value

func (t LocalDate) Value() (driver.Value, error)

type LocalTime

type LocalTime time.Time

func (LocalTime) MarshalJSON

func (t LocalTime) MarshalJSON() ([]byte, error)

func (*LocalTime) Scan

func (t *LocalTime) Scan(v interface{}) error

func (LocalTime) String

func (t LocalTime) String() string

func (*LocalTime) UnmarshalJSON

func (t *LocalTime) UnmarshalJSON(data []byte) (err error)

func (LocalTime) Value

func (t LocalTime) Value() (driver.Value, error)

type LocalTimeZone added in v2.6.0

type LocalTimeZone time.Time

func (LocalTimeZone) MarshalJSON added in v2.6.0

func (t LocalTimeZone) MarshalJSON() ([]byte, error)

func (*LocalTimeZone) Scan added in v2.6.0

func (t *LocalTimeZone) Scan(v interface{}) error

func (LocalTimeZone) String added in v2.6.0

func (t LocalTimeZone) String() string

func (*LocalTimeZone) UnmarshalJSON added in v2.6.0

func (t *LocalTimeZone) UnmarshalJSON(data []byte) (err error)

func (LocalTimeZone) Value added in v2.6.0

func (t LocalTimeZone) Value() (driver.Value, error)

type Pagination

type Pagination[T any] struct {
	Offset     int   `json:"-"`
	PageSize   int   `json:"page_size"`
	PageNumber int   `json:"page_number"`
	TotalPage  int64 `json:"total_page"`
	TotalRow   int64 `json:"total_row"`
	Items      []T   `json:"items"`
}

func Paginate

func Paginate[T any](c *fiber.Ctx, totalRows int64) *Pagination[T]

Jump to

Keyboard shortcuts

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