Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBConnector ¶
DBConnector is a interface od *sql.DB
func NewSqlite3 ¶
func NewSqlite3(ds string) (DBConnector, error)
NewSqlite3 create new sqlite3 connection.
type EntryRepository ¶
type EntryRepository struct{}
EntryRepository implements IEntryRepository interface.
type IEntryRepository ¶
type IEntryRepository interface { GetAll(db DB) ([]entity.Entry, error) Save(db DB, entry entity.Entry) error }
IEntryRepository is interface of the repository to fetch Entry.
Click to show internal directories.
Click to hide internal directories.