updated flow, room & participant id created by server

This commit is contained in:
David Zhao
2020-11-28 00:18:34 -08:00
parent bd667cfe39
commit bea1a87cb8
24 changed files with 675 additions and 624 deletions
+15
View File
@@ -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()
}