You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started to use this library to create an uptime service. While using this lib I noticed it is quite annoying to pass time and duration values in some cases because the accepted value most of the cases is an int or uint instead of time.Time or time.Duration.
RetentionMSecs field of CreateOptions is time.Duration.
TimeBucket field of RangeOptions and MultiRangeOptions is int.
fromTimestamp and toTimestamp parameter of RangeWithOptions is int64.
bucketSizeMSec parameter of CreateRule is uint.
Furthermore, TimeRangeMinimum and TimeRangeMaximum are ints there for the following code fails to compile:
I started to use this library to create an uptime service. While using this lib I noticed it is quite annoying to pass time and duration values in some cases because the accepted value most of the cases is an
int
oruint
instead oftime.Time
ortime.Duration
.RetentionMSecs
field ofCreateOptions
istime.Duration
.TimeBucket
field ofRangeOptions
andMultiRangeOptions
isint
.fromTimestamp
andtoTimestamp
parameter ofRangeWithOptions
isint64
.bucketSizeMSec
parameter ofCreateRule
isuint
.Furthermore,
TimeRangeMinimum
andTimeRangeMaximum
are ints there for the following code fails to compile:Is it something which could be fixed in a potential v2 in the future?
The text was updated successfully, but these errors were encountered: