Documentation ¶
Index ¶
- func GetDataSourceName() (string, string, error)
- func GetSQL(name string, req interface{}) string
- type IpRepository
- func (r *IpRepository) CheckNow(id string) (models.NowNumber, error)
- func (r *IpRepository) DeleteExpiredData(ids []models.TranID) error
- func (r *IpRepository) GetExpired() ([]models.TranID, error)
- func (r *IpRepository) GetID(id string) (models.TranID, error)
- func (r *IpRepository) GetQuestion(id string, num int) (models.TranQuestion, error)
- func (r *IpRepository) GetResults(id string) ([]models.TranQuestion, error)
- func (r *IpRepository) InsertFirstData(mid models.TranID, tq models.TranQuestion) error
- func (r *IpRepository) InsertQuestion(tq models.TranQuestion) error
- func (r *IpRepository) UpdateID(tid models.TranID) error
- func (r *IpRepository) UpdateQuestion(tq models.TranQuestion) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDataSourceName ¶
Types ¶
type IpRepository ¶
func NewIpRepository ¶
func NewIpRepository(dm *gorp.DbMap) *IpRepository
func (*IpRepository) CheckNow ¶
func (r *IpRepository) CheckNow(id string) (models.NowNumber, error)
func (*IpRepository) DeleteExpiredData ¶
func (r *IpRepository) DeleteExpiredData(ids []models.TranID) error
func (*IpRepository) GetExpired ¶
func (r *IpRepository) GetExpired() ([]models.TranID, error)
func (*IpRepository) GetQuestion ¶
func (r *IpRepository) GetQuestion(id string, num int) (models.TranQuestion, error)
func (*IpRepository) GetResults ¶
func (r *IpRepository) GetResults(id string) ([]models.TranQuestion, error)
func (*IpRepository) InsertFirstData ¶
func (r *IpRepository) InsertFirstData(mid models.TranID, tq models.TranQuestion) error
func (*IpRepository) InsertQuestion ¶
func (r *IpRepository) InsertQuestion(tq models.TranQuestion) error
func (*IpRepository) UpdateQuestion ¶
func (r *IpRepository) UpdateQuestion(tq models.TranQuestion) error
Click to show internal directories.
Click to hide internal directories.