mirror of
https://github.com/livekit/livekit.git
synced 2026-04-16 21:25:40 +00:00
* protobuf updates to support new protocol * use dedicated publish & subscribe peerconnections * update client to work with dedicated PCs * fix Go client negotiation, reduced length of UUID
18 lines
287 B
Go
18 lines
287 B
Go
package utils
|
|
|
|
import (
|
|
"github.com/lithammer/shortuuid/v3"
|
|
)
|
|
|
|
const (
|
|
RoomPrefix = "RM_"
|
|
NodePrefix = "ND_"
|
|
ParticipantPrefix = "PA_"
|
|
TrackPrefix = "TR_"
|
|
APIKeyPrefix = "API"
|
|
)
|
|
|
|
func NewGuid(prefix string) string {
|
|
return prefix + shortuuid.New()[:12]
|
|
}
|