Documentation ¶
Index ¶
- func GetRoutineID() int
- func GetStackStr() string
- func GoPprofServe(port string)
- func NowMs() int64
- func NowNano() int64
- func RandFloat32(min, max float32) float32
- func SafeJsonMarshal(data interface{}) string
- func SafeJsonMarshalByteArray(data interface{}) []byte
- func SplitAddress(address string) (string, int)
- type FakeMutex
- type IMutex
- type SerialIdService
- type SerialIdService64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStackStr ¶
func GetStackStr() string
func GoPprofServe ¶
func GoPprofServe(port string)
func RandFloat32 ¶
func SafeJsonMarshal ¶
func SafeJsonMarshal(data interface{}) string
func SafeJsonMarshalByteArray ¶
func SafeJsonMarshalByteArray(data interface{}) []byte
func SplitAddress ¶
Types ¶
type SerialIdService ¶
type SerialIdService struct {
// contains filtered or unexported fields
}
func NewSerialIdService ¶
func NewSerialIdService() *SerialIdService
func (*SerialIdService) AllocId ¶
func (s *SerialIdService) AllocId() uint32
type SerialIdService64 ¶
type SerialIdService64 struct {
// contains filtered or unexported fields
}
func NewSerialIdService64 ¶
func NewSerialIdService64() *SerialIdService64
func (*SerialIdService64) AllocId ¶
func (s *SerialIdService64) AllocId() uint64
Click to show internal directories.
Click to hide internal directories.