Documentation ¶
Index ¶
- func EnsureModelUUID(modelUUID, id string) string
- func SplitDocID(id string) (string, string, bool)
- type Backing
- func (b *Backing) Changed(store multiwatcher.Store, change watcher.Change) error
- func (b *Backing) DeleteEntity(id multiwatcher.EntityID)
- func (b *Backing) GetAll(store multiwatcher.Store) error
- func (b *Backing) SetFetchError(err error)
- func (b *Backing) Unwatch(c chan<- watcher.Change)
- func (b *Backing) UpdateEntity(info multiwatcher.EntityInfo)
- func (b *Backing) Watch(c chan<- watcher.Change)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureModelUUID ¶
EnsureModelUUID is exported as it is used in other _test files.
Types ¶
type Backing ¶
type Backing struct {
// contains filtered or unexported fields
}
Backing is a test state AllWatcherBacking
func (*Backing) DeleteEntity ¶
func (b *Backing) DeleteEntity(id multiwatcher.EntityID)
DeleteEntity allows the test to push a delete through the test.
func (*Backing) GetAll ¶
func (b *Backing) GetAll(store multiwatcher.Store) error
GetAll does the initial population of the store.
func (*Backing) SetFetchError ¶
SetFetchError queues up an error to return on the next fetch.
func (*Backing) UpdateEntity ¶
func (b *Backing) UpdateEntity(info multiwatcher.EntityInfo)
UpdateEntity allows the test to push an update.
Click to show internal directories.
Click to hide internal directories.