Documentation
¶
Index ¶
- func CalculateJitter(baseDelay time.Duration, percent float64) time.Duration
- func ConnectionsEqual(c1, c2 net.Conn) bool
- func FormatBytes(bytes int64) string
- func FromByte(b []byte) string
- func GenerateHMACKey(length int) (string, error)
- func GenerateSecretKey(length int) (string, error)
- func GetRandomPort() (int, error)
- func MustGenerateHMACKey(length int) string
- func MustGenerateSecretKey(length int) string
- func RemoveFromJSONBye(jsonStr json.RawMessage, key ...string) json.RawMessage
- func RemoveRecursiveFromJSON(jsonStr json.RawMessage, key ...string) json.RawMessage
- func SizeOf(v any) uintptr
- func ToByte(s string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectionsEqual ¶
func FormatBytes ¶ added in v0.0.12
func GenerateHMACKey ¶
func GenerateSecretKey ¶
func GetRandomPort ¶ added in v0.0.12
GetRandomPort returns a free port chosen by the operating system.
func MustGenerateHMACKey ¶
func MustGenerateSecretKey ¶
func RemoveFromJSONBye ¶ added in v0.0.17
func RemoveFromJSONBye(jsonStr json.RawMessage, key ...string) json.RawMessage
func RemoveRecursiveFromJSON ¶ added in v0.0.17
func RemoveRecursiveFromJSON(jsonStr json.RawMessage, key ...string) json.RawMessage
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.