Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storer ¶
type Storer interface {
// Read reads records for the given module from the database.
Read(context.Context, string) ([]model.Data, error)
// Write writes the data to the database.
Write(context.Context, model.Data) error
// View returns the data for the given module in the format that is suitable for the web view.
View(context.Context, string) (map[string]map[string]string, error)
}
Storer is an interface that describes the methods that a storage backend must implement.
Click to show internal directories.
Click to hide internal directories.