Documentation ¶
Index ¶
- Variables
- func AddCode(code *Code) bool
- func AddConference(conference *Conference) bool
- func AddRoom(room *Room) bool
- func AddSubmission(submission *Submission) bool
- func DeleteCode(code *Code) bool
- func DeleteConference(conference *Conference) bool
- func DeleteRoom(room *Room) bool
- func DeleteSubmission(submission *Submission) bool
- func IncrementRoomViewer(id string) bool
- func InitAdapter()
- func InitConfig()
- func InitRoomClient()
- func UpdateCode(id string, code *Code) bool
- func UpdateConference(id string, conference *Conference) bool
- func UpdateRoom(id string, room *Room) bool
- func UpdateRoomStatus(meetingNumber string, status string)
- func UpdateSubmission(id string, submission *Submission) bool
- type Adapter
- type AuthorItem
- type Code
- type Conference
- type JwtPayload
- type Participant
- type Room
- func GetGlobalRooms() []*Room
- func GetMaskedRoom(room *Room, username string) *Room
- func GetMaskedRooms(rooms []*Room, username string) []*Room
- func GetPublicRooms(rooms []*Room) []*Room
- func GetRoom(id string) *Room
- func GetRoomWithLive(room *Room) *Room
- func GetRooms(owner string) []*Room
- func GetRoomsWithLive(rooms []*Room) []*Room
- func RegisterRoom(id string, username string) *Room
- type Slot
- type Submission
- type TreeItem
- type ZakClaims
Constants ¶
This section is empty.
Variables ¶
View Source
var LiveClient *live.Client
Functions ¶
func AddConference ¶
func AddConference(conference *Conference) bool
func AddSubmission ¶
func AddSubmission(submission *Submission) bool
func DeleteCode ¶
func DeleteConference ¶
func DeleteConference(conference *Conference) bool
func DeleteRoom ¶
func DeleteSubmission ¶
func DeleteSubmission(submission *Submission) bool
func IncrementRoomViewer ¶
func InitAdapter ¶
func InitAdapter()
func InitConfig ¶
func InitConfig()
func InitRoomClient ¶
func InitRoomClient()
func UpdateCode ¶
func UpdateConference ¶
func UpdateConference(id string, conference *Conference) bool
func UpdateRoom ¶
func UpdateRoomStatus ¶
func UpdateSubmission ¶
func UpdateSubmission(id string, submission *Submission) bool
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter represents the MySQL adapter for policy storage.
func NewAdapter ¶
NewAdapter is the constructor for Adapter.
type AuthorItem ¶
type Code ¶
type Code struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"createdTime"` DisplayName string `xorm:"varchar(100)" json:"displayName"` Notebook string `xorm:"varchar(100)" json:"notebook"` Tags []string `xorm:"varchar(100)" json:"tags"` ImgUrl string `xorm:"varchar(100)" json:"imgUrl"` }
func GetGlobalCodes ¶
func GetGlobalCodes() []*Code
type Conference ¶
type Conference struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"createdTime"` DisplayName string `xorm:"varchar(100)" json:"displayName"` Type string `xorm:"varchar(100)" json:"type"` Introduction string `xorm:"mediumtext" json:"introduction"` StartDate string `xorm:"varchar(100)" json:"startDate"` EndDate string `xorm:"varchar(100)" json:"endDate"` Organizer string `xorm:"varchar(100)" json:"organizer"` Carousels []string `xorm:"mediumtext" json:"carousels"` CarouselHeight string `xorm:"varchar(100)" json:"carouselHeight"` Tags []string `xorm:"mediumtext" json:"tags"` DatasetUrl string `xorm:"varchar(100)" json:"datasetUrl"` DatasetPreviewUrl string `xorm:"varchar(100)" json:"datasetPreviewUrl"` PreviewData string `xorm:"mediumtext" json:"previewData"` ResultUrl string `xorm:"varchar(100)" json:"resultUrl"` Bonus int `json:"bonus"` PersonCount int `json:"personCount"` DisplayState string `xorm:"varchar(100)" json:"displayState"` Status string `xorm:"varchar(100)" json:"status"` Language string `xorm:"varchar(100)" json:"language"` Location string `xorm:"varchar(100)" json:"location"` Address string `xorm:"varchar(100)" json:"address"` EnableSubmission bool `json:"enableSubmission"` DefaultItem string `xorm:"mediumtext" json:"defaultItem"` TreeItems []*TreeItem `xorm:"mediumtext" json:"treeItems"` }
func GetConference ¶
func GetConference(id string) *Conference
func GetConferences ¶
func GetConferences(owner string) []*Conference
func GetGlobalConferences ¶
func GetGlobalConferences() []*Conference
type JwtPayload ¶
type Participant ¶
type Participant struct { Name string `xorm:"varchar(100)" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"createdTime"` DisplayName string `xorm:"varchar(100)" json:"displayName"` Email string `xorm:"varchar(100)" json:"email"` Affiliation string `xorm:"varchar(100)" json:"affiliation"` Tag string `xorm:"varchar(100)" json:"tag"` Role string `xorm:"varchar(100)" json:"role"` JoinUrl string `xorm:"varchar(500)" json:"joinUrl"` }
type Room ¶
type Room struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"createdTime"` DisplayName string `xorm:"varchar(100)" json:"displayName"` Conference string `xorm:"varchar(100)" json:"conference"` Speaker string `xorm:"varchar(100)" json:"speaker"` Date string `xorm:"varchar(100)" json:"date"` StartTime string `xorm:"varchar(100)" json:"startTime"` EndTime string `xorm:"varchar(100)" json:"endTime"` Location string `xorm:"varchar(100)" json:"location"` ImageUrl string `xorm:"varchar(100)" json:"imageUrl"` SdkKey string `xorm:"varchar(100)" json:"sdkKey"` Signature string `xorm:"varchar(1000)" json:"signature"` MeetingNumber string `xorm:"varchar(100)" json:"meetingNumber"` Passcode string `xorm:"varchar(100)" json:"passcode"` InviteLink string `xorm:"varchar(100)" json:"inviteLink"` StartUrl string `xorm:"varchar(500)" json:"startUrl"` Participants []*Participant `xorm:"mediumtext" json:"participants"` Slots []*Slot `xorm:"mediumtext" json:"slots"` Status string `xorm:"varchar(100)" json:"status"` IsPublic bool `json:"isPublic"` IngestDomain string `xorm:"varchar(100)" json:"ingestDomain"` IngestAuthKey string `xorm:"varchar(100)" json:"ingestAuthKey"` StreamingDomain string `xorm:"varchar(100)" json:"streamingDomain"` StreamingAuthKey string `xorm:"varchar(100)" json:"streamingAuthKey"` MobileStreamingAuthKey string `xorm:"varchar(100)" json:"mobileStreamingAuthKey"` VideoWidth int `json:"videoWidth"` VideoHeight int `json:"videoHeight"` IsLive bool `json:"isLive"` LiveUserCount int `json:"liveUserCount"` ViewerCount int `json:"viewerCount"` VideoUrl string `xorm:"varchar(255)" json:"videoUrl"` }
func GetGlobalRooms ¶
func GetGlobalRooms() []*Room
func GetMaskedRoom ¶
func GetMaskedRooms ¶
func GetPublicRooms ¶
func GetRoomWithLive ¶
func GetRoomsWithLive ¶
func RegisterRoom ¶
type Slot ¶
type Slot struct { Type string `xorm:"varchar(100)" json:"type"` Date string `xorm:"varchar(100)" json:"date"` StartTime string `xorm:"varchar(100)" json:"startTime"` EndTime string `xorm:"varchar(100)" json:"endTime"` Title string `xorm:"varchar(100)" json:"title"` Speaker string `xorm:"varchar(100)" json:"speaker"` Location string `xorm:"varchar(100)" json:"location"` VideoUrl string `xorm:"varchar(255)" json:"videoUrl"` }
type Submission ¶
type Submission struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"createdTime"` Conference string `xorm:"varchar(100)" json:"conference"` Title string `xorm:"varchar(100)" json:"title"` Authors []*AuthorItem `xorm:"varchar(2000)" json:"authors"` Type string `xorm:"varchar(100)" json:"type"` SubType string `xorm:"varchar(100)" json:"subType"` AbsWordFileUrl string `xorm:"varchar(500)" json:"absWordFileUrl"` AbsPdfFileUrl string `xorm:"varchar(500)" json:"absPdfFileUrl"` FullWordFileUrl string `xorm:"varchar(500)" json:"fullWordFileUrl"` FullPdfFileUrl string `xorm:"varchar(500)" json:"fullPdfFileUrl"` FinalWordFileUrl string `xorm:"varchar(500)" json:"finalWordFileUrl"` FinalPdfFileUrl string `xorm:"varchar(500)" json:"finalPdfFileUrl"` Status string `xorm:"varchar(100)" json:"status"` Code string `xorm:"mediumtext" json:"code"` }
func GetGlobalSubmissions ¶
func GetGlobalSubmissions() []*Submission
func GetSubmission ¶
func GetSubmission(id string) *Submission
func GetSubmissions ¶
func GetSubmissions(owner string) []*Submission
type TreeItem ¶
type TreeItem struct { Key string `xorm:"varchar(100)" json:"key"` Title string `xorm:"varchar(100)" json:"title"` Content string `xorm:"mediumtext" json:"content"` TitleEn string `xorm:"varchar(100)" json:"titleEn"` ContentEn string `xorm:"mediumtext" json:"contentEn"` Children []*TreeItem `xorm:"varchar(1000)" json:"children"` }
type ZakClaims ¶
type ZakClaims struct { Aud string `json:"aud"` Uid string `json:"uid"` Iss string `json:"iss"` Sk string `json:"sk"` Sty int `json:"sty"` Wcd string `json:"wcd"` Clt int `json:"clt"` Mnum string `json:"mnum"` Exp int `json:"exp"` Iat int `json:"iat"` Aid string `json:"aid"` Cid string `json:"cid"` }
Click to show internal directories.
Click to hide internal directories.