guid

package
v1.27.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 11 Imported by: 17

Documentation

Index

Constants

View Source
const (
	RoomPrefix            = "RM_"
	NodePrefix            = "ND_"
	ParticipantPrefix     = "PA_"
	TrackPrefix           = "TR_"
	APIKeyPrefix          = "API"
	EgressPrefix          = "EG_"
	IngressPrefix         = "IN_"
	SIPTrunkPrefix        = "ST_"
	SIPDispatchRulePrefix = "SDR_"
	SIPCallPrefix         = "SCL_"
	RPCPrefix             = "RPC_"
	WHIPResourcePrefix    = "WH_"
	RTMPResourcePrefix    = "RT_"
	URLResourcePrefix     = "UR_"
	AgentWorkerPrefix     = "AW_"
	AgentJobPrefix        = "AJ_"
	AgentDispatchPrefix   = "AD_"
)
View Source
const Size = 12

Variables

This section is empty.

Functions

func HashedID

func HashedID(id string) string

HashedID creates a hashed ID from a unique string

func LocalNodeID

func LocalNodeID() (string, error)

func Marshal

func Marshal[T livekit.Guid](id T) livekit.GuidBlock

func MarshalAppend added in v1.24.0

func MarshalAppend[T livekit.Guid](b []byte, id T) []byte

func New

func New(prefix string) string

func Unmarshal

func Unmarshal[T livekit.Guid](b livekit.GuidBlock) T

Types

This section is empty.

Jump to

Keyboard shortcuts

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