Documentation ¶
Index ¶
- Variables
- type SQLiteRepository
- func (r *SQLiteRepository) All() ([]Website, error)
- func (r *SQLiteRepository) Create(website Website) (*Website, error)
- func (r *SQLiteRepository) Delete(id int64) error
- func (r *SQLiteRepository) GetByName(name string) (*Website, error)
- func (r *SQLiteRepository) Migrate() error
- func (r *SQLiteRepository) Update(id int64, updated Website) (*Website, error)
- type Website
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type SQLiteRepository ¶
type SQLiteRepository struct {
// contains filtered or unexported fields
}
func NewSQLiteRepository ¶
func NewSQLiteRepository(db *sql.DB) *SQLiteRepository
func (*SQLiteRepository) All ¶
func (r *SQLiteRepository) All() ([]Website, error)
func (*SQLiteRepository) Create ¶
func (r *SQLiteRepository) Create(website Website) (*Website, error)
func (*SQLiteRepository) Delete ¶
func (r *SQLiteRepository) Delete(id int64) error
func (*SQLiteRepository) GetByName ¶
func (r *SQLiteRepository) GetByName(name string) (*Website, error)
func (*SQLiteRepository) Migrate ¶
func (r *SQLiteRepository) Migrate() error
Click to show internal directories.
Click to hide internal directories.