Documentation
¶
Index ¶
- Variables
- func GUID() string
- func HashString(str string) string
- func IsGroupUID(uid string) bool
- func Min[T Integer](a, b T) T
- func ParseSession(s string) (tp messagev1.SessionType, from, to types.ID, err error)
- func RandIntn(n int) int
- func Session(tp messagev1.SessionType, from, to types.ID) string
- func Sha256(data []byte) []byte
- func UUID() string
- type Integer
- type Set
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidSessionType invalid session type ErrInvalidSessionType = fmt.Errorf("invalid session type") // ErrInvalidSessionIDLength invalid session id length ErrInvalidSessionIDLength = fmt.Errorf("invalid session id length") )
Functions ¶
func HashString ¶
func IsGroupUID ¶ added in v0.0.5
func ParseSession ¶ added in v0.0.7
Types ¶
type Set ¶ added in v0.0.5
type Set[T comparable] struct { // contains filtered or unexported fields }
func NewSet ¶ added in v0.0.5
func NewSet[T comparable]() *Set[T]
Click to show internal directories.
Click to hide internal directories.