|
|
@ -8,8 +8,9 @@ import ( |
|
|
|
"net/url" |
|
|
|
"net/url" |
|
|
|
"sort" |
|
|
|
"sort" |
|
|
|
"strconv" |
|
|
|
"strconv" |
|
|
|
|
|
|
|
"strings" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/lithammer/shortuuid/v3" |
|
|
|
"github.com/sethvargo/go-diceware/diceware" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
type phoneNumber struct { |
|
|
|
type phoneNumber struct { |
|
|
@ -23,8 +24,13 @@ type jitsiMeeting struct { |
|
|
|
Phone []phoneNumber |
|
|
|
Phone []phoneNumber |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (j *jitsiMeeting) getJitsiName() { |
|
|
|
func (j *jitsiMeeting) getJitsiName() error { |
|
|
|
j.Name = shortuuid.New() |
|
|
|
list, err := diceware.Generate(4) |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
|
|
|
|
return err |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
j.Name = strings.Join(list, "-") |
|
|
|
|
|
|
|
return nil |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (j *jitsiMeeting) getURL() string { |
|
|
|
func (j *jitsiMeeting) getURL() string { |
|
|
|