Discover Packages
github.com/google/note-maps
note
dbtest
package
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Jan 18, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
RandomID returns a pseudo-random ID using package math/rand.
TestLoader will run a few tests against l that are meant to fail if l does
not implement the note.Loader interface correctly.
BreakingLoader is an optionally partly broken proxy to a Loader.
Load returns l.Err when l.Count==l.ErrAtCount, and otherwise return
l.Loader.Load(ids).
In any case, Load() will increment Count.
When l.Err is nil, l is just a Count incrementing proxy to l.Loader.
BrokenNote implements note.GraphNote but always returns an error when attempting
to read anything other than the ID.
GetContents always returns n.Err.
GetID always gets the ID.
GetTypes always returns n.Err.
GetValue always returns n.Err.
type BrokenNoteLoader struct{ Err error }
BrokenNoteLoader loads instances of BrokenNote.
Load will always successfully load all requested notes without error, but
the returned notes will always return errors when attempts are made to read
them.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.