Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeRecord ¶ added in v1.7.1
MakeRecord creates a new Record
func NewData ¶ added in v1.7.1
func NewData(obj validation.Dataer) (validation.Dataer, error)
Types ¶
type Collection ¶
type Collection interface { collections.Enumerable Get(index int) hsk.Record Add(rec hsk.Record) int Contains(rec hsk.Record) bool IndexOf(rec hsk.Record) int Insert(index int, rec hsk.Record) Remove(rec hsk.Record) RemoveAt(index int) Count() int ToSlice() []hsk.Record }
Collection is a set of Records
func CollectionOf ¶ added in v1.7.1
func CollectionOf(t validation.Dataer) Collection
func NewCollection ¶
func NewCollection() Collection
type Page ¶
type Page interface { Add(record hsk.Record) bool collections.Enumerable Prev() string Next() string Count() int Any() bool GetRecords() Collection }
Page represents a piece of a larger dataset.
func NewRecordPage ¶
NewRecordPage creates a data page for records
func NewResultPage ¶ added in v1.7.1
func NewResultPage(t validation.Dataer) Page
NewResultPage creates a page for JSONed records
Click to show internal directories.
Click to hide internal directories.