record

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ID = Int64Getter{
	Field: field{
		// contains filtered or unexported fields
	},
	Get: func(item Record) int64 {
		return item.GetID()
	},
}

ID is a common getter for all types Records

Functions

This section is empty.

Types

type BoolGetter

type BoolGetter struct {
	Field
	Get func(item Record) bool
}

func (BoolGetter) Less added in v0.1.0

func (getter BoolGetter) Less(a, b Record) bool

type Enum16

type Enum16 interface {
	Value() uint16
}

type Enum16Getter

type Enum16Getter struct {
	Field
	Get func(item Record) Enum16
}

func (Enum16Getter) Less added in v0.1.0

func (getter Enum16Getter) Less(a, b Record) bool

type Enum8

type Enum8 interface {
	Value() uint8
}

type Enum8Getter

type Enum8Getter struct {
	Field
	Get func(item Record) Enum8
}

func (Enum8Getter) Less added in v0.1.0

func (getter Enum8Getter) Less(a, b Record) bool

type Field added in v0.1.0

type Field interface {
	Index() uint8
	String() string
}

type FieldsConstructor added in v0.1.0

type FieldsConstructor uint8

func NewFields added in v0.1.0

func NewFields() *FieldsConstructor

func (*FieldsConstructor) New added in v0.1.0

func (fc *FieldsConstructor) New(name string) Field

type Int32Getter

type Int32Getter struct {
	Field
	Get func(item Record) int32
}

func (Int32Getter) Less added in v0.1.0

func (getter Int32Getter) Less(a, b Record) bool

type Int64Getter

type Int64Getter struct {
	Field
	Get func(item Record) int64
}

func (Int64Getter) Less added in v0.1.0

func (getter Int64Getter) Less(a, b Record) bool

type IntGetter

type IntGetter struct {
	Field
	Get func(item Record) int
}

func (IntGetter) Less added in v0.1.0

func (getter IntGetter) Less(a, b Record) bool

type InterfaceGetter

type InterfaceGetter struct {
	Field
	Get func(item Record) interface{}
}

type Map

type Map interface {
	HasKey(key interface{}) bool
	HasValue(check MapValueComparator) (bool, error)
}

type MapGetter

type MapGetter struct {
	Field
	Get func(item Record) Map
}

type MapValueComparator added in v0.0.3

type MapValueComparator interface {
	Compare(value interface{}) (bool, error)
}

type Record

type Record interface {
	GetID() int64
}

type Set

type Set interface {
	Has(item interface{}) bool
}

type SetGetter

type SetGetter struct {
	Field
	Get func(item Record) Set
}

type StringGetter

type StringGetter struct {
	Field
	Get func(item Record) string
}

func (StringGetter) Less added in v0.1.0

func (getter StringGetter) Less(a, b Record) bool

Jump to

Keyboard shortcuts

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