Documentation ¶
Index ¶
- type AbstractRepository
- type Repository
- func (r *Repository) Delete(key, id string) error
- func (r *Repository) GetDetail(key, id string) (*map[string]interface{}, error)
- func (r *Repository) GetList(key string) ([]*map[string]interface{}, error)
- func (r *Repository) MemoryDelete(key, id string) error
- func (r *Repository) MemoryGetDetail(key, id string) (*map[string]interface{}, error)
- func (r *Repository) MemoryGetList(key string) ([]*map[string]interface{}, error)
- func (r *Repository) MemorySet(key string, data []*map[string]interface{}) error
- func (r *Repository) Set(key string, data []*map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractRepository ¶
type Repository ¶
type Repository struct { AbstractRepository MemoryDatastore *buntdb.DB }
func NewRepository ¶
func NewRepository() *Repository
func (*Repository) Delete ¶
func (r *Repository) Delete(key, id string) error
func (*Repository) GetDetail ¶
func (r *Repository) GetDetail(key, id string) (*map[string]interface{}, error)
func (*Repository) GetList ¶
func (r *Repository) GetList(key string) ([]*map[string]interface{}, error)
func (*Repository) MemoryDelete ¶
func (r *Repository) MemoryDelete(key, id string) error
func (*Repository) MemoryGetDetail ¶
func (r *Repository) MemoryGetDetail(key, id string) (*map[string]interface{}, error)
func (*Repository) MemoryGetList ¶
func (r *Repository) MemoryGetList(key string) ([]*map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.