Documentation ¶
Index ¶
- type EntryRepository
- func (r *EntryRepository) Create(entry *core.Entry) error
- func (r *EntryRepository) CreateMany(entries []*core.Entry) error
- func (r *EntryRepository) Delete(entry *core.Entry) error
- func (r *EntryRepository) DeleteManyByName(names []string) error
- func (r *EntryRepository) FindOneByName(name string) (*core.Entry, error)
- func (r *EntryRepository) GetAll() (map[string]*core.Entry, error)
- type SettingsRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntryRepository ¶
type EntryRepository struct {
// contains filtered or unexported fields
}
func NewEntryRepository ¶
func NewEntryRepository(name string, db *sql.DB) *EntryRepository
func (*EntryRepository) CreateMany ¶
func (r *EntryRepository) CreateMany(entries []*core.Entry) error
func (*EntryRepository) DeleteManyByName ¶
func (r *EntryRepository) DeleteManyByName(names []string) error
func (*EntryRepository) FindOneByName ¶
func (r *EntryRepository) FindOneByName(name string) (*core.Entry, error)
type SettingsRepository ¶
type SettingsRepository struct {
// contains filtered or unexported fields
}
func NewSettingsRepository ¶
func NewSettingsRepository(name string, db *sql.DB) *SettingsRepository
Click to show internal directories.
Click to hide internal directories.