updated flow, room & participant id created by server
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/lithammer/shortuuid/v3"
|
||||
)
|
||||
|
||||
const (
|
||||
RoomPrefix = "R-"
|
||||
NodePrefix = "N-"
|
||||
ParticipantPrefix = "P-"
|
||||
)
|
||||
|
||||
func NewGuid(prefix string) string {
|
||||
return prefix + shortuuid.New()
|
||||
}
|
||||
Reference in New Issue
Block a user