Documentation ¶
Index ¶
- Variables
- type Achievement
- func (ctx *Achievement) After(id string) ([]interface{}, error)
- func (ctx *Achievement) AfterByQuestID(questID string, afterID string) ([]interface{}, error)
- func (ctx *Achievement) Create(achievement interface{}) (string, error)
- func (ctx *Achievement) Exists(id interface{}) (bool, error)
- func (ctx *Achievement) LastID() (string, error)
- func (ctx *Achievement) LastIDByQuestID(questID string) (string, error)
- func (ctx *Achievement) Single(id string) (interface{}, error)
- type Achievementer
- type Afterer
- type Context
- type Creator
- type DB
- func (db *DB) Achievement() Achievementer
- func (db *DB) Evidence() Evidencer
- func (db *DB) Involvement() Involvementer
- func (db *DB) MultimediaType() MultimediaTyper
- func (db *DB) Profile() Profiler
- func (db *DB) Quest() Quester
- func (db *DB) QuestAchievement() QuestAchievementer
- func (db *DB) QuestType() QuestTyper
- func (db *DB) Reward() Rewarder
- func (db *DB) RewardType() RewardTyper
- func (db *DB) User() Userer
- type DBSourcer
- type Evidence
- type Evidencer
- type Exister
- type ExisterMultiple
- type Involvement
- type Involvementer
- type Laster
- type MultimediaType
- type MultimediaTyper
- type Profile
- type Profiler
- type Quest
- type QuestAchievement
- type QuestAchievementer
- type QuestType
- type QuestTyper
- type Quester
- type Reward
- type RewardType
- type RewardTyper
- type Rewarder
- type Singler
- type User
- type Userer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoRows = sql.ErrNoRows
)
Functions ¶
This section is empty.
Types ¶
type Achievement ¶
type Achievement struct {
*Context
}
func (*Achievement) After ¶
func (ctx *Achievement) After(id string) ([]interface{}, error)
func (*Achievement) AfterByQuestID ¶
func (ctx *Achievement) AfterByQuestID(questID string, afterID string) ([]interface{}, error)
func (*Achievement) Create ¶
func (ctx *Achievement) Create(achievement interface{}) (string, error)
func (*Achievement) Exists ¶
func (ctx *Achievement) Exists(id interface{}) (bool, error)
func (*Achievement) LastID ¶
func (ctx *Achievement) LastID() (string, error)
func (*Achievement) LastIDByQuestID ¶
func (ctx *Achievement) LastIDByQuestID(questID string) (string, error)
func (*Achievement) Single ¶
func (ctx *Achievement) Single(id string) (interface{}, error)
type Achievementer ¶
type Achievementer interface { Exists(id interface{}) (bool, error) Single(id string) (interface{}, error) Create(achievement interface{}) (string, error) LastID() (string, error) LastIDByQuestID(questID string) (string, error) After(id string) ([]interface{}, error) AfterByQuestID(questID string, afterID string) ([]interface{}, error) }
type DB ¶
DB struct holds the connection to DB
func (*DB) Achievement ¶
func (db *DB) Achievement() Achievementer
func (*DB) Involvement ¶
func (db *DB) Involvement() Involvementer
func (*DB) MultimediaType ¶
func (db *DB) MultimediaType() MultimediaTyper
func (*DB) QuestAchievement ¶
func (db *DB) QuestAchievement() QuestAchievementer
func (*DB) QuestType ¶
func (db *DB) QuestType() QuestTyper
func (*DB) RewardType ¶
func (db *DB) RewardType() RewardTyper
type DBSourcer ¶
type DBSourcer interface { User() Userer Profile() Profiler Achievement() Achievementer Evidence() Evidencer Involvement() Involvementer Quest() Quester QuestType() QuestTyper QuestAchievement() QuestAchievementer Reward() Rewarder RewardType() RewardTyper MultimediaType() MultimediaTyper }
DBSourcer contains all available DAO functions
type ExisterMultiple ¶
type Involvement ¶
type Involvement struct {
*Context
}
func (*Involvement) Exists ¶
func (ctx *Involvement) Exists(id interface{}) (bool, error)
type Involvementer ¶
type MultimediaType ¶
type MultimediaType struct {
*Context
}
func (*MultimediaType) Exists ¶
func (ctx *MultimediaType) Exists(id interface{}) (bool, error)
type MultimediaTyper ¶
type QuestAchievement ¶
type QuestAchievement struct {
*Context
}
func (*QuestAchievement) Create ¶
func (ctx *QuestAchievement) Create(qstAch interface{}) (string, error)
func (*QuestAchievement) Exists ¶
func (ctx *QuestAchievement) Exists(args ...interface{}) (bool, error)
type QuestAchievementer ¶
type QuestTyper ¶
type RewardType ¶
type RewardType struct {
*Context
}
func (*RewardType) Exists ¶
func (ctx *RewardType) Exists(id interface{}) (bool, error)
type RewardTyper ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.