util

package
v0.0.0-...-36249bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoPool = gopool.NewPool(100, 100<<3)

Functions

func AesDecode

func AesDecode(bs []byte) ([]byte, error)

func AesEncode

func AesEncode(bs []byte) ([]byte, error)

func ArraySub

func ArraySub[K int | int8 | int32 | int64 | string](a1, a2 []K) (_r []K)

func ArraySub2

func ArraySub2[K int | int8 | int32 | int64 | string](a []K, k K) (_r []K)

func ChatIdByNode

func ChatIdByNode(fromNode, toNode string, domain *string) uint64

func ChatIdByRoom

func ChatIdByRoom(node string, domain *string) uint64

func CheckNode

func CheckNode(node string) bool

func CheckUUID

func CheckUUID(uuid uint64) bool

func ContainInt

func ContainInt[T int64 | uint64 | int | uint | uint32 | int32](li []T, v T) (b bool)

func ContainStrings

func ContainStrings(li []string, v string) (b bool)

func CreateUUID

func CreateUUID(node string, domain *string) uint64

func CreateUUIDByTid

func CreateUUIDByTid(tid *Tid) uint64

func HttpPost

func HttpPost(bs []byte, close bool, httpurl string) (_r []byte, err error)

func JTP

func JTP(b byte) bool

func Mask

func Mask(bs []byte) (_r []byte)

func MaskId

func MaskId(id int64) (_r int64)

func MaskStr

func MaskStr(s string) (_r string)

func MaskTid

func MaskTid(tid *Tid)

func MaskWithSeed

func MaskWithSeed(bs []byte, seed []byte) (_r []byte)

func NameToNode

func NameToNode(name string, domain *string) string

func NewTimUUID

func NewTimUUID() uint64

func NodeToUUID

func NodeToUUID(node string) (_r uint64)

func ParseAddr

func ParseAddr(addr string) (_r string, err error)

func Recover

func Recover()

func RelateIdForGroup

func RelateIdForGroup(groupNode, userNode string, domain *string) uint64

func UUIDToNode

func UUIDToNode(uuid uint64) string

func UnikId

func UnikId(f, t uint64) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL