Documentation
¶
Index ¶
- func AddMockData() (err error)
- func AddNewConfInfo(confInfo *ConfInfo) (err error)
- func DeleteUserFromTopic(topic string, userId string, confInfo *ConfInfo) (err error)
- func GetAllConfInfos(confInfos *[]ConfInfo) (err error)
- func GetConfInfoById(confId string, confInfo *ConfInfo) (err error)
- func GetConfInfoByTopic(topic string, confInfo *ConfInfo) (err error)
- func GetTopicInfo(topic string, confInfo *ConfInfo) (err error)
- func PatchUserToTopic(topic string, newUser User, confInfo *ConfInfo) (err error)
- type ConfInfo
- type InputConfInfo
- type InputConfInfos
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNewConfInfo ¶
POST /api/v1/confInfos Create a ConfInfo in
func DeleteUserFromTopic ¶
DELETE /api/v1/topicMode/confInfos/:topic/users/:userUrl Delete a user from a ConfInfo using his userUrl
func GetAllConfInfos ¶
GET /api/v1/confInfos Get all ConfInfos
func GetConfInfoById ¶
GET /api/v1/confInfos/:id Get a ConfInfo by its id
func GetConfInfoByTopic ¶
GET /api/v1/confInfos/:topic Get a ConfInfo by its topic which equals to its subject field
func GetTopicInfo ¶
GET /api/v1/topicMode/confInfos/:topic Get all information related to a Topic An alternative way for GET /api/v1/confInfos/?topic
Types ¶
type ConfInfo ¶
type ConfInfo struct {
gorm.Model
ConfUri string
Subject string
Users []User `gorm:"foreignKey:ConfRefer"`
}
Conference Information
type InputConfInfo ¶
Input for mocking ConfInfo
Click to show internal directories.
Click to hide internal directories.