Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadgeEngine ¶
type BadgeEngine struct {
// contains filtered or unexported fields
}
func NewBadgeEngine ¶
func NewBadgeEngine() *BadgeEngine
func (*BadgeEngine) CheckEarned ¶
func (e *BadgeEngine) CheckEarned(savings int64) []*Badge
func (*BadgeEngine) Get ¶
func (e *BadgeEngine) Get(id string) *Badge
func (*BadgeEngine) List ¶
func (e *BadgeEngine) List() []*Badge
type ContributionDay ¶
type ContributionGraph ¶
type ContributionGraph struct {
// contains filtered or unexported fields
}
func NewContributionGraph ¶
func NewContributionGraph() *ContributionGraph
func (*ContributionGraph) AddDay ¶
func (cg *ContributionGraph) AddDay(date string, savings int)
func (*ContributionGraph) Render ¶
func (cg *ContributionGraph) Render(width, height int) string
func (*ContributionGraph) SVGBadge ¶
func (cg *ContributionGraph) SVGBadge() string
func (*ContributionGraph) Stats ¶
func (cg *ContributionGraph) Stats() map[string]interface{}
type KardashevRank ¶
type KardashevRank struct {
Tier Tier `json:"tier"`
Level int `json:"level"`
Savings int64 `json:"savings"`
NextTier Tier `json:"next_tier"`
NextLevel int64 `json:"next_level"`
Progress float64 `json:"progress"`
}
func NewKardashevRank ¶
func NewKardashevRank(savings int64) *KardashevRank
Click to show internal directories.
Click to hide internal directories.