Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateContext ¶
func CreateContext()
func GetRequired ¶
GetRequired returns the amount of XP required for the next level.
func XPValue ¶
func XPValue(xp ExperienceType) int
Types ¶
type Experience ¶
type Experience struct { Type ExperienceType Points int Date time.Time }
func (Experience) Valid ¶
func (o Experience) Valid() error
type ExperienceType ¶
type ExperienceType = int
const ( PlaceAd ExperienceType = iota Transact Comment Vote )
func GetExperienceType ¶
func GetExperienceType(name string) ExperienceType
type Hero ¶
type Hero struct { Subject string //oidc user Credits int Experiences []Experience Level Level TotalXP int }
func (*Hero) AddExperience ¶
func (h *Hero) AddExperience(xpType ExperienceType)
func (*Hero) AddRequisition ¶
func (h *Hero) AddRequisition()
Click to show internal directories.
Click to hide internal directories.