Documentation ¶
Index ¶
- Constants
- func CreateRoom(name string) bool
- func CreateUser(name string) bool
- func GetLanguage() (model string)
- func GetWatsonToken() string
- func UpdateDomain(name string) bool
- func UpdateLanguage(model string) bool
- func UpdateSkyWayKey(key string) bool
- func UpdateWatsonAccount(username string, password string) bool
- type Domain
- type Room
- type RoomUsers
- type SkyWay
- type User
- type WatsonAccount
Constants ¶
View Source
const BcryptCost = 10
BcryptCost : cost value of encrypting by bcrypt
Variables ¶
This section is empty.
Functions ¶
func GetWatsonToken ¶
func GetWatsonToken() string
GetWatsonToken : issue token for watson speech to text
func UpdateSkyWayKey ¶
UpdateSkyWayKey : update skyway API key
func UpdateWatsonAccount ¶
UpdateWatsonAccount : update account info
Types ¶
type User ¶
type User struct { ID int Name string Password string IconPath string Admin bool CreatedAt string LoginedAt string }
User model
func Authenticate ¶
Authenticate : user authentication
func (*User) JoinedRooms ¶
JoinedRooms : return rooms which user joined
func (*User) NotJoinedRooms ¶
NotJoinedRooms : return rooms which user not joined
func (*User) UpdateAdmin ¶
UpdateAdmin : return success to update admin or not
type WatsonAccount ¶
WatsonAccount model
func GetWatsonAccount ¶
func GetWatsonAccount() (w WatsonAccount)
GetWatsonAccount : get account info
Click to show internal directories.
Click to hide internal directories.