recordset

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: GPL-3.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 Meta

type Meta struct {
	Limit  int64 `json:"Limit,omitempty"`
	Skip   int64 `json:"Skip,omitempty"`
	Count  int   `json:"Count,omitempty"`
	Total  int64 `json:"Total,omitempty"`
	Filter map[string]interface{}
}

type RecordSet

type RecordSet[ID any, DATA any] struct {
	Items []record.Record[ID, DATA]
	Meta  Meta
}

func (*RecordSet[ID, DATA]) GetCount

func (rs *RecordSet[ID, DATA]) GetCount() int

func (*RecordSet[ID, DATA]) GetItems

func (rs *RecordSet[ID, DATA]) GetItems() []record.Record[ID, DATA]

Get Item mehtod

func (*RecordSet[ID, DATA]) SetItems

func (rs *RecordSet[ID, DATA]) SetItems(items []record.Record[ID, DATA])

Jump to

Keyboard shortcuts

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