Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataStore ¶
type DataStore struct {
Path string
// contains filtered or unexported fields
}
DataStore Datastore
type JSONDatastore ¶
type JSONDatastore interface {
Save(name string, data interface{}) bool
Read(name string) *[]byte
ReadAll() *[][]byte
Delete(name string) bool
Reload() bool
}
JSONDatastore JSONDatastore
type MockDataStore ¶
type MockDataStore struct {
Path string
MockSuccess bool
MockDeleteSuccess bool
MockReloadSuccess bool
MockData []byte
MockDataList [][]byte
}
MockDataStore Datastore
func (*MockDataStore) Delete ¶ added in v1.0.1
func (d *MockDataStore) Delete(name string) bool
Delete Delete
func (*MockDataStore) ReadAll ¶ added in v1.0.2
func (d *MockDataStore) ReadAll() *[][]byte
ReadAll ReadAll
func (*MockDataStore) Save ¶
func (d *MockDataStore) Save(name string, data interface{}) bool
Save Save
Click to show internal directories.
Click to hide internal directories.