Documentation ¶
Index ¶
- type Collection
- func (c *Collection) DelRecord(key string) error
- func (c *Collection) GetAllRecords() map[string]string
- func (c *Collection) GetAllRecordsKeys() []string
- func (c *Collection) GetRecord(key string) (string, error)
- func (c *Collection) ModifyRecord(key string, value string) error
- func (c *Collection) NewRecord(key string, value string) error
- func (c *Collection) SaveRecordsAndSetHash()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
var (
DB *Collection
)
func New ¶
func New() (*Collection, error)
func NewDebug ¶ added in v1.0.1
func NewDebug() (*Collection, error)
func (*Collection) DelRecord ¶
func (c *Collection) DelRecord(key string) error
func (*Collection) GetAllRecords ¶
func (c *Collection) GetAllRecords() map[string]string
func (*Collection) GetAllRecordsKeys ¶
func (c *Collection) GetAllRecordsKeys() []string
func (*Collection) ModifyRecord ¶
func (c *Collection) ModifyRecord(key string, value string) error
func (*Collection) SaveRecordsAndSetHash ¶ added in v1.0.4
func (c *Collection) SaveRecordsAndSetHash()
Click to show internal directories.
Click to hide internal directories.