|
|
@ -20,6 +20,7 @@ type phoneNumber struct { |
|
|
|
|
|
|
|
|
|
|
|
type jitsiMeeting struct { |
|
|
|
type jitsiMeeting struct { |
|
|
|
Name string |
|
|
|
Name string |
|
|
|
|
|
|
|
CustomServer string |
|
|
|
ID string |
|
|
|
ID string |
|
|
|
Phone []phoneNumber |
|
|
|
Phone []phoneNumber |
|
|
|
} |
|
|
|
} |
|
|
@ -34,7 +35,10 @@ func (j *jitsiMeeting) getJitsiName() error { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (j *jitsiMeeting) getURL() string { |
|
|
|
func (j *jitsiMeeting) getURL() string { |
|
|
|
|
|
|
|
if j.CustomServer == "" { |
|
|
|
return fmt.Sprintf("https://meet.jit.si/%s", j.Name) |
|
|
|
return fmt.Sprintf("https://meet.jit.si/%s", j.Name) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return fmt.Sprintf("%s/%s", j.CustomServer, j.Name) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (j *jitsiMeeting) getPIN() string { |
|
|
|
func (j *jitsiMeeting) getPIN() string { |
|
|
|