Documentation ¶
Overview ¶
Package offer provides an example model.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { // Delete deletes m. Delete(m Offer) (Offer, error) // New creates m. New(m Offer) (Offer, error) // Set updates m. Set(m Offer) (Offer, error) }
Interface is the Offer interface.
type Offer ¶
type Offer struct { // Interface is used by methods. Interface Interface // Created is the created time. Created time.Time // Deleted is the deleted time. Deleted time.Time // ID is the ID. ID string // Name is the name. Name string // Updated is the updated time. Updated time.Time }
Offer is an example model.
func (Offer) BetterName ¶
BetterName is an example of a non-service method.
type Repository ¶
type Repository interface { Load(id string) (Offer, bool) LoadAll() []Offer LoadRange(id string, limit int) ([]Offer, bool) Store(m Offer) }
func NewRepository ¶
func NewRepository(c gossie.ConnectionPool) Repository
Click to show internal directories.
Click to hide internal directories.