Documentation ¶
Index ¶
- func NewUserRepository(db *sqlx.DB) *rest.SqliteRepository
- type Repository
- func (r Repository) Adder(resource interface{}) (sql.Result, error)
- func (r Repository) Deleter(id int) (sql.Result, error)
- func (r Repository) Getter(id int) (interface{}, error)
- func (r Repository) Lister(limit string) (interface{}, error)
- func (r Repository) Updater(id int, resource interface{}) (sql.Result, error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserRepository ¶
func NewUserRepository(db *sqlx.DB) *rest.SqliteRepository
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (Repository) Getter ¶
func (r Repository) Getter(id int) (interface{}, error)
func (Repository) Lister ¶
func (r Repository) Lister(limit string) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.