object

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LiveClient *live.Client

Functions

func AddCode

func AddCode(code *Code) bool

func AddConference

func AddConference(conference *Conference) bool

func AddRoom

func AddRoom(room *Room) bool

func AddSubmission

func AddSubmission(submission *Submission) bool

func DeleteCode

func DeleteCode(code *Code) bool

func DeleteConference

func DeleteConference(conference *Conference) bool

func DeleteRoom

func DeleteRoom(room *Room) bool

func DeleteSubmission

func DeleteSubmission(submission *Submission) bool

func IncrementRoomViewer

func IncrementRoomViewer(id string) bool

func InitAdapter

func InitAdapter()

func InitConfig

func InitConfig()

func InitRoomClient

func InitRoomClient()

func UpdateCode

func UpdateCode(id string, code *Code) bool

func UpdateConference

func UpdateConference(id string, conference *Conference) bool

func UpdateRoom

func UpdateRoom(id string, room *Room) bool

func UpdateRoomStatus

func UpdateRoomStatus(meetingNumber string, status string)

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

func NewAdapter(driverName string, dataSourceName string) *Adapter

NewAdapter is the constructor for Adapter.

type AuthorItem

type AuthorItem struct {
	Name            string `xorm:"varchar(100)" json:"name"`
	Affiliation     string `xorm:"varchar(100)" json:"affiliation"`
	Email           string `xorm:"varchar(100)" json:"email"`
	IsNotified      bool   `json:"isNotified"`
	IsCorresponding bool   `json:"isCorresponding"`
}

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 GetCode

func GetCode(id string) *Code

func GetCodes

func GetCodes(owner string) []*Code

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 JwtPayload struct {
	SdkKey   string `json:"sdkKey"`
	Mn       string `json:"mn"`
	Role     string `json:"role"`
	Iat      int64  `json:"iat"`
	Exp      int64  `json:"exp"`
	AppKey   string `json:"appKey"`
	TokenExp int64  `json:"tokenExp"`
}

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 GetMaskedRoom(room *Room, username string) *Room

func GetMaskedRooms

func GetMaskedRooms(rooms []*Room, username string) []*Room

func GetPublicRooms

func GetPublicRooms(rooms []*Room) []*Room

func GetRoom

func GetRoom(id string) *Room

func GetRoomWithLive

func GetRoomWithLive(room *Room) *Room

func GetRooms

func GetRooms(owner string) []*Room

func GetRoomsWithLive

func GetRoomsWithLive(rooms []*Room) []*Room

func RegisterRoom

func RegisterRoom(id string, username string) *Room

func (*Room) GetId

func (p *Room) GetId() string

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL