Documentation ¶
Index ¶
- func GenPathTpl() string
- func GetDeliveryId() int64
- func GetHandshakeUid() uint64
- func GetMsgType(manifest string) (string, error)
- func GetUniqueId(jobId, jobInstanceId, taskId int64) string
- func GetUniqueIdWithoutTaskId(jobId, jobInstanceId int64) string
- func GetWorkerId() string
- func HmacSHA1Encrypt(encryptText, encryptKey string) string
- func IsValidDomain(domain string) bool
- func ParseIPAddr(addr string) (string, int, error)
- func ParseId(uniqueId string, idType IdType) (int64, error)
- func ShuffleStringSlice(nums []string) []string
- func SyncMapLen(m *sync.Map) int
- type ConcurrentSet
- type IdType
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenPathTpl ¶
func GenPathTpl() string
func GetDeliveryId ¶
func GetDeliveryId() int64
func GetHandshakeUid ¶
func GetHandshakeUid() uint64
func GetMsgType ¶
func GetUniqueId ¶
func GetWorkerId ¶
func GetWorkerId() string
func HmacSHA1Encrypt ¶
HmacSHA1Encrypt encrypt the encryptText use encryptKey
func IsValidDomain ¶
func ShuffleStringSlice ¶
func SyncMapLen ¶
Types ¶
type ConcurrentSet ¶
type ConcurrentSet struct {
// contains filtered or unexported fields
}
func NewConcurrentSet ¶
func NewConcurrentSet() *ConcurrentSet
func (*ConcurrentSet) Add ¶
func (s *ConcurrentSet) Add(item interface{})
func (*ConcurrentSet) Clear ¶
func (s *ConcurrentSet) Clear()
func (*ConcurrentSet) Contains ¶
func (s *ConcurrentSet) Contains(item interface{}) bool
func (*ConcurrentSet) Len ¶
func (s *ConcurrentSet) Len() int
func (*ConcurrentSet) Remove ¶
func (s *ConcurrentSet) Remove(item interface{})
func (*ConcurrentSet) ToStringSlice ¶
func (s *ConcurrentSet) ToStringSlice() []string
Click to show internal directories.
Click to hide internal directories.