Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DEACTIVATED - Status sign for the streak getting deactivated DEACTIVATED uint8 // ACTIVATED - Status sign for the streak getting activated ACTIVATED uint8 = 1 )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Limit int // Describes how many times we have to hit before a streak becomes hot HotWait time.Duration // Describes the amount of time we are waiting before declaring a cool down ActiveWait time.Duration // Describes the amount of time we are waiting to check on a streak being active AlwaysActive bool // Describes if the streak can deactivate or not }
Config is the structure of the configuration that can be injected to the lib
type Hotstreak ¶
type Hotstreak struct {
// contains filtered or unexported fields
}
Hotstreak is the main structure of the library
func (*Hotstreak) Deactivate ¶
Deactivate turns off the streak
Click to show internal directories.
Click to hide internal directories.