Documentation
¶
Index ¶
- type FakeDispatcher
- func (f *FakeDispatcher) Entity(_ context.Context, id string) (*api.Entity, error)
- func (f *FakeDispatcher) Search(_ context.Context, parameters map[string]interface{}) ([]*api.Entity, error)
- func (f *FakeDispatcher) Submit(_ context.Context, records []*api.Record) (*dispatcher.SubmissionResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeDispatcher ¶
type FakeDispatcher struct {
// contains filtered or unexported fields
}
func (*FakeDispatcher) Search ¶
func (f *FakeDispatcher) Search(_ context.Context, parameters map[string]interface{}) ([]*api.Entity, error)
Search finds all matching records and returns a slice of Entity
The fake search will return maximum one entity which includes all matching records, unlike the real search. Not all search parameters need to match a record field to consider the record a match, one is enough.
func (*FakeDispatcher) Submit ¶
func (f *FakeDispatcher) Submit(_ context.Context, records []*api.Record) (*dispatcher.SubmissionResult, error)
Click to show internal directories.
Click to hide internal directories.