Documentation ¶
Index ¶
- Variables
- func ExplodeInt64(str string, seperator string) (result []int64)
- func ExplodeUint32(str string, seperator string) (result []uint32)
- func GetContextValueInt64(c *blademaster.Context, key string) (v int64, ok bool)
- func GetContextValueString(c *blademaster.Context, key string) (v string, ok bool)
- func GetNextPeriodTime(clock string, period time.Duration, currentTime time.Time) (next time.Time, err error)
- func IsBitSet(attr int, bit uint) bool
- func IsBitSet64(attr int64, bit uint) bool
- func ParseCommonTime(layout string, value string) (t xtime.Time, err error)
- func SetBit64(attr int64, bit uint) int64
- func TruncateDate(tm time.Time) time.Time
- func UnSetBit64(attr int64, bit uint) int64
- func Unique(intSlice []int64) []int64
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //GlobalTimer timer queue GlobalTimer = timerqueue.New() )
Functions ¶
func ExplodeInt64 ¶
ExplodeInt64 explode string to slice
func ExplodeUint32 ¶
ExplodeUint32 explode string to slice
func GetContextValueInt64 ¶
func GetContextValueInt64(c *blademaster.Context, key string) (v int64, ok bool)
GetContextValueInt64 get context int64
func GetContextValueString ¶
func GetContextValueString(c *blademaster.Context, key string) (v string, ok bool)
GetContextValueString get context string
func GetNextPeriodTime ¶
func GetNextPeriodTime(clock string, period time.Duration, currentTime time.Time) (next time.Time, err error)
GetNextPeriodTime get next period time from current time clock, like "03:05:00" period, like 24h currentTime, like now return the next alarm time for this clock
func ParseCommonTime ¶
ParseCommonTime parse to library common time
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package now is a time toolkit for golang.
|
Package now is a time toolkit for golang. |
Package timerqueue implements a priority queue for objects scheduled at a particular time.
|
Package timerqueue implements a priority queue for objects scheduled at a particular time. |
Click to show internal directories.
Click to hide internal directories.