Documentation ¶
Overview ¶
Package counter contains counter logic.
Это основная математика проекта, поэтому размещена в корне, а не в каталоге внутренних библиотек lib/.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter holds object internals
func NewCounter ¶
NewCounter creates a counter object
func (*Counter) GetSettings ¶
GetSettings returns current settings
func (*Counter) IncrementNumber ¶
IncrementNumber adds c.settings.Step to current counter number. If new number >= c.settings.Limit, this limit deducted from number
Click to show internal directories.
Click to hide internal directories.