Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryDataSource ¶
type MemoryDataSource struct {
// contains filtered or unexported fields
}
MemoryDataSource is an in memory data source that implements the lower level DataAccesser interface
func NewMemoryDataSource ¶
func NewMemoryDataSource() *MemoryDataSource
func (*MemoryDataSource) Add ¶
func (m *MemoryDataSource) Add(e webapp.Entity) (int, error)
Add helps satisfy the DataAccesser interface Add must only add to the underlying storage if it does not exist
func (*MemoryDataSource) Del ¶
func (m *MemoryDataSource) Del(id int) error
Del helps satisfy the DataAccesser interface
func (*MemoryDataSource) Get ¶
func (m *MemoryDataSource) Get(id int) (webapp.Entity, error)
Get helps satisfy the DataAccesser interface
Click to show internal directories.
Click to hide internal directories.