Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(server string, database string) Repository
func (Repository) Create ¶
func (re Repository) Create(q *Question) error
func (Repository) GetAll ¶
func (re Repository) GetAll() ([]Question, error)
func (Repository) Remove ¶
func (re Repository) Remove(id string) error
func (Repository) Table ¶
func (re Repository) Table() r.Term
func (Repository) Update ¶
func (re Repository) Update(q *Question) error
Click to show internal directories.
Click to hide internal directories.