guid

package
v1.44.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: Apache-2.0 Imports: 13 Imported by: 31

Documentation

Index

Constants

View Source
const (
	RoomPrefix                         = "RM_"
	NodePrefix                         = "ND_"
	ParticipantPrefix                  = "PA_"
	TrackPrefix                        = "TR_"
	DataTrackPrefix                    = "DTR_"
	APIKeyPrefix                       = "API"
	EgressPrefix                       = "EG_"
	IngressPrefix                      = "IN_"
	SIPTrunkPrefix                     = "ST_"
	SIPDispatchRulePrefix              = "SDR_"
	SIPCallPrefix                      = "SCL_"
	SIPTransferPrefix                  = "STR_"
	RPCPrefix                          = "RPC_"
	WHIPResourcePrefix                 = "WH_"
	RTMPResourcePrefix                 = "RT_"
	URLResourcePrefix                  = "UR_"
	SIPHostnamePrefix                  = "SH"
	AgentPrefix                        = "A_"
	AgentWorkerPrefix                  = "AW_"
	AgentJobPrefix                     = "AJ_"
	AgentDispatchPrefix                = "AD_"
	AgentBuilderPrefix                 = "AB_"
	AgentBuilderVersionPrefix          = "ABV_"
	CloudAgentPrefix                   = "CA_"
	CloudAgentRegionPrefix             = "CAR_"
	CloudAgentVersionPrefix            = "CAV_"
	CloudAgentSecretPrefix             = "CAS_"
	CloudAgentWorkerPrefix             = "CAW_"
	CloudAgentPrivateLinkPrefix        = "CAPL_"
	CloudAgentPrivateLinkGatewayPrefix = "CAPLG_"
	CloudAgentPrivateLinkSecretPrefix  = "CAPLS_"
	AgentGatewayPrefix                 = "GW_"
	CarrierPrefix                      = "CR_"
	PhoneNumberPrefix                  = "PN_"
)
View Source
const Size = 12

Variables

This section is empty.

Functions

func Hash added in v1.40.0

func Hash(prefix string, data []byte) string

func HashedID

func HashedID(id string) string

HashedID creates a hashed ID from a unique string

func IsValidID added in v1.42.0

func IsValidID[T ~string](id T) bool

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