Documentation ¶
Index ¶
- Variables
- func AbsInt(i int) int
- func CheckError(action string, err error)
- func ClientIP4() ([]byte, error)
- func Compress(raw []byte, compressLevel int) ([]byte, error)
- func FakeIP() []byte
- func FileReadAll(path string) ([]byte, error)
- func GetAddressByBytes(data []byte) string
- func HashString(s string) int
- func MinInt(a, b int) int
- func UnCompress(data []byte) []byte
- func WriteToFile(path string, data []byte) error
- type Set
- type StringUnique
- type UniqueItem
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrRequestTimeout for request timeout error ErrRequestTimeout = errors.New("request timeout") ErrMQEmpty = errors.New("MessageQueue is nil") ErrOffset = errors.New("offset < 0") ErrNumbers = errors.New("numbers < 0") )
View Source
var (
LocalIP string
)
Functions ¶
func CheckError ¶
func FileReadAll ¶
func GetAddressByBytes ¶
func UnCompress ¶
func WriteToFile ¶
Types ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
func (*Set) Add ¶
func (s *Set) Add(v UniqueItem)
func (*Set) MarshalJSON ¶
func (Set) UnmarshalJSON ¶
type StringUnique ¶
type StringUnique string
func (StringUnique) UniqueID ¶
func (str StringUnique) UniqueID() string
type UniqueItem ¶
type UniqueItem interface {
UniqueID() string
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.