Documentation ¶
Index ¶
- Variables
- func Iter(options ...IterOption) (fn func(index Index) (Src, io.Closer, error))
- func Register(o any)
- func RegisterIndex(name string, t reflect.Type)
- func Select(index Index, options ...SelectOption) (err error)
- func TestIdxUnknown(t *testing.T)
- func TestTuple(t *testing.T)
- type AssignCount
- type Def
- type Entry
- type Exact
- type Index
- type IndexManager
- type IterOption
- type IterOptions
- type Key
- type Limit
- type Lower
- type Offset
- type Order
- type PreEntry
- type SaveOption
- type Scope
- type SelectIndex
- type SelectOption
- type SelectOptions
- type Sink
- type Spec
- type Src
- type Store
- type StoreID
- type StoreIndex
- type TapEntry
- type TapKey
- type TapTokens
- type TestIndex
- type Upper
- type Where
- type WithCtx
Constants ¶
This section is empty.
Variables ¶
View Source
var Cancel = errors.New("cancel")
View Source
var ErrInvalidEntry = errors.New("invalid entry")
View Source
var MatchEntry = NewEntry
View Source
var MatchPreEntry = NewPreEntry
View Source
var TestingIndex = testingIndex{}
View Source
var TestingIndex2 = testingIndex2{}
Functions ¶
func RegisterIndex ¶
func Select ¶
func Select( index Index, options ...SelectOption, ) ( err error, )
func TestIdxUnknown ¶
Types ¶
type AssignCount ¶
type AssignCount [1]*int
func Count ¶
func Count(target *int) AssignCount
func (AssignCount) IsIterOption ¶
func (_ AssignCount) IsIterOption()
func (AssignCount) IsSelectOption ¶
func (_ AssignCount) IsSelectOption()
type Def ¶
type Def struct{}
func (Def) SelectIndex ¶
func (Def) SelectIndex( index Index, ) SelectIndex
type Entry ¶
func (Entry) IsIterOption ¶
func (_ Entry) IsIterOption()
func (Entry) IsSelectOption ¶
func (_ Entry) IsSelectOption()
type Exact ¶
type Exact Entry
func (Exact) IsIterOption ¶
func (_ Exact) IsIterOption()
func (Exact) IsSelectOption ¶
func (_ Exact) IsSelectOption()
type IterOption ¶
type IterOption interface {
IsIterOption()
}
type IterOptions ¶
type IterOptions []IterOption
func (IterOptions) IsIterOption ¶
func (_ IterOptions) IsIterOption()
func (IterOptions) IsSelectOption ¶
func (_ IterOptions) IsSelectOption()
type Limit ¶
type Limit int
func (Limit) IsIterOption ¶
func (_ Limit) IsIterOption()
func (Limit) IsSelectOption ¶
func (_ Limit) IsSelectOption()
type Lower ¶
type Lower Entry
func (Lower) IsIterOption ¶
func (_ Lower) IsIterOption()
func (Lower) IsSelectOption ¶
func (_ Lower) IsSelectOption()
type Offset ¶
type Offset int
func (Offset) IsIterOption ¶
func (_ Offset) IsIterOption()
func (Offset) IsSelectOption ¶
func (_ Offset) IsSelectOption()
type Order ¶
type Order uint8
func (Order) IsIterOption ¶
func (_ Order) IsIterOption()
func (Order) IsSelectOption ¶
func (_ Order) IsSelectOption()
type PreEntry ¶
func NewPreEntry ¶
func (PreEntry) IsIterOption ¶
func (_ PreEntry) IsIterOption()
func (PreEntry) IsSelectOption ¶
func (_ PreEntry) IsSelectOption()
type SaveOption ¶
type SaveOption interface {
IsSaveOption()
}
type SelectIndex ¶
type SelectIndex func( ctx context.Context, args ...SelectOption, ) error
type SelectOption ¶
type SelectOption interface {
IsSelectOption()
}
type SelectOptions ¶
type SelectOptions []SelectOption
func (SelectOptions) IsSelectOption ¶
func (_ SelectOptions) IsSelectOption()
type Sink ¶
func (Sink) IsSelectOption ¶
func (_ Sink) IsSelectOption()
type StoreIndex ¶
type TapEntry ¶
type TapEntry func(Entry)
func (TapEntry) IsSaveOption ¶
func (_ TapEntry) IsSaveOption()
func (TapEntry) IsSelectOption ¶
func (_ TapEntry) IsSelectOption()
type TapTokens ¶
func (TapTokens) IsSelectOption ¶
func (_ TapTokens) IsSelectOption()
type TestIndex ¶
type TestIndex func( withIndexManager func(func(IndexManager)), t *testing.T, )
test Index implementation
type Upper ¶
type Upper Entry
func (Upper) IsIterOption ¶
func (_ Upper) IsIterOption()
func (Upper) IsSelectOption ¶
func (_ Upper) IsSelectOption()
type Where ¶
func (Where) IsIterOption ¶
func (_ Where) IsIterOption()
func (Where) IsSelectOption ¶
func (_ Where) IsSelectOption()
Click to show internal directories.
Click to hide internal directories.