Documentation
¶
Index ¶
- func GetEnteredRaffles(tx *sql.Tx, object interface{}, parameter interface{}) error
- func GetMyRaffles(tx *sql.Tx, object interface{}, parameter interface{}) error
- func GetRaffle(tx *sql.Tx, object interface{}, parameter interface{}) error
- func GetRafflesFromList(tx *sql.Tx, object, parameter interface{}, query string) error
- func Init(dburl string) error
- func RaffleDraw(raffle_id string, entries []Entry, scores []Score) (*Entry, []Score)
- func Transact(object interface{}, parameters interface{}, ...) error
- type Entry
- type Raffle
- func (this *Raffle) Cancel() (bool, error)
- func (this *Raffle) Close() (bool, error)
- func (this *Raffle) Disqualify(user_id int) (bool, error)
- func (this *Raffle) Draw() (*Entry, error)
- func (this *Raffle) Enter(user_id int, display string) (bool, error)
- func (this *Raffle) Open() (bool, error)
- func (this *Raffle) Status(user_id int) (*Entry, error)
- func (this *Raffle) Undisqualify(user_id int) (*Entry, error)
- func (this *Raffle) Withdraw(user_id int, display string) (bool, error)
- type Score
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnteredRaffles ¶
func GetMyRaffles ¶
func GetRafflesFromList ¶
func RaffleDraw ¶
precondition: entries must be filtered to include only active, non-disqualified ones
Types ¶
Click to show internal directories.
Click to hide internal directories.