Documentation ¶ Index ¶ func GetUserIntervalAndTimeInterval(userNum, msgNum int, tm time.Duration) (time.Duration, time.Duration) func ParseDuration(str string) (time.Duration, error) func ParseRateString(str string) (int, time.Duration, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetUserIntervalAndTimeInterval ¶ func GetUserIntervalAndTimeInterval(userNum, msgNum int, tm time.Duration) (time.Duration, time.Duration) func ParseDuration ¶ func ParseDuration(str string) (time.Duration, error) func ParseRateString ¶ func ParseRateString(str string) (int, time.Duration, error) Types ¶ This section is empty. Source Files ¶ View all Source files rate.go Click to show internal directories. Click to hide internal directories.