Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Constraint ¶
type Constraint func(ConstraintStruct) error
type ConstraintStruct ¶
type ConstraintStruct = api.View_Constraint
type Iterator ¶
Iterator is a stateful object that enumerates routing records. See casm.Iterator() for important information on lifetime and error handling.
func (Iterator) Err ¶
Err reports any error encountered during iteration. Next will always return nil when Err() != nil.
type Query ¶
type Query func(QueryParams) error
func NewQuery ¶
func NewQuery(s Selector, cs ...Constraint) Query
type QueryParams ¶
type QueryParams interface { NewSelector() (api.View_Selector, error) NewConstraints(int32) (api.View_Constraint_List, error) }
type RecordBinder ¶
type RecordBinder interface {
BindRecord(api.View_Record) error
}
type Selector ¶
type Selector func(SelectorStruct) error
type SelectorStruct ¶
type SelectorStruct = api.View_Selector
type View ¶
func (View) Iter ¶
Iter returns an iterator that ranges over records matching the supplied query. Callers MUST call the ReleaseFunc when finished with the iterator. Callers MUST NOT call methods on the iterator after calling the ReleaseFunc.
Click to show internal directories.
Click to hide internal directories.