Versions in this module Expand all Collapse all v0 v0.2.2 Jul 12, 2016 Changes in this version + type Storage struct + func New(dsn string) Storage + func (s *Storage) SetMaxIdleConns(n int) + func (s *Storage) SetMaxOpenConns(n int) + func (s Storage) GetDrawingNeededGames() ([]models.Game, error) + func (s Storage) GetGames(limit, offset int64) ([]models.Game, error) + func (s Storage) GetLatestBlock() (models.Block, error) + func (s Storage) GetTransactionsByGameOfs(gameOfs ...time.Time) ([]models.Transaction, error) + func (s Storage) GetUnconfirmedTransactions(confirmations int64) ([]models.Transaction, error) + func (s Storage) SaveBlockAndTransactions(gameOf time.Time, block models.Block, transactions []models.Transaction, ...) error + func (s Storage) UpdateGameToEndedStatus(game models.Game) error + func (s Storage) UpdateTransactionConfirmationByID(id int64, confirmations int64) error