pkg

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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) Entity

func (f *FakeDispatcher) Entity(_ context.Context, id string) (*api.Entity, error)

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

Jump to

Keyboard shortcuts

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