Documentation ¶
Index ¶
- func AddUserToRoomPUT(req sdk.APIRequest, res sdk.APIResponder) error
- func CreateMessage(req sdk.APIRequest, res sdk.APIResponder) error
- func CreateRoom(req sdk.APIRequest, res sdk.APIResponder) error
- func CreateUser(req sdk.APIRequest, res sdk.APIResponder) error
- func EncryptMsg(msg string, key *rsa.PublicKey) []byte
- func GetMsgRoom(req sdk.APIRequest, res sdk.APIResponder) error
- func GetPinMessage(req sdk.APIRequest, res sdk.APIResponder) error
- func GetRoom(req sdk.APIRequest, res sdk.APIResponder) error
- func GetRoomInfo(req sdk.APIRequest, res sdk.APIResponder) error
- func OnWSClose(conn *websocket.Connection, err error)
- func OnWSConnected(conn *websocket.Connection)
- func OnWSMessage(conn *websocket.Connection, message string)
- func PinMessage(req sdk.APIRequest, res sdk.APIResponder) error
- func PushFirebaseMessageToUser(req sdk.APIRequest, res sdk.APIResponder) error
- func RegisterNewFirebaseDevice(req sdk.APIRequest, res sdk.APIResponder) error
- func RemoveUserToRoomPUT(req sdk.APIRequest, res sdk.APIResponder) error
- func RequestUserPublicKey(req sdk.APIRequest, res sdk.APIResponder) error
- func SearchUser(req sdk.APIRequest, res sdk.APIResponder) error
- func UpdateRoomInfoPUT(req sdk.APIRequest, res sdk.APIResponder) error
- type FirebasePushRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUserToRoomPUT ¶
func AddUserToRoomPUT(req sdk.APIRequest, res sdk.APIResponder) error
func CreateMessage ¶
func CreateMessage(req sdk.APIRequest, res sdk.APIResponder) error
create message if have fromUserId -> don't send to this user
func CreateRoom ¶
func CreateRoom(req sdk.APIRequest, res sdk.APIResponder) error
func CreateUser ¶
func CreateUser(req sdk.APIRequest, res sdk.APIResponder) error
func GetMsgRoom ¶
func GetMsgRoom(req sdk.APIRequest, res sdk.APIResponder) error
func GetPinMessage ¶
func GetPinMessage(req sdk.APIRequest, res sdk.APIResponder) error
Get click pin message
func GetRoom ¶
func GetRoom(req sdk.APIRequest, res sdk.APIResponder) error
func GetRoomInfo ¶
func GetRoomInfo(req sdk.APIRequest, res sdk.APIResponder) error
func OnWSClose ¶
func OnWSClose(conn *websocket.Connection, err error)
func OnWSConnected ¶
func OnWSConnected(conn *websocket.Connection)
func OnWSMessage ¶
func OnWSMessage(conn *websocket.Connection, message string)
func PinMessage ¶
func PinMessage(req sdk.APIRequest, res sdk.APIResponder) error
POST add pin message
func PushFirebaseMessageToUser ¶
func PushFirebaseMessageToUser(req sdk.APIRequest, res sdk.APIResponder) error
func RegisterNewFirebaseDevice ¶
func RegisterNewFirebaseDevice(req sdk.APIRequest, res sdk.APIResponder) error
func RemoveUserToRoomPUT ¶
func RemoveUserToRoomPUT(req sdk.APIRequest, res sdk.APIResponder) error
one user per remove
func RequestUserPublicKey ¶
func RequestUserPublicKey(req sdk.APIRequest, res sdk.APIResponder) error
func SearchUser ¶
func SearchUser(req sdk.APIRequest, res sdk.APIResponder) error
func UpdateRoomInfoPUT ¶
func UpdateRoomInfoPUT(req sdk.APIRequest, res sdk.APIResponder) error
Types ¶
type FirebasePushRequest ¶
Click to show internal directories.
Click to hide internal directories.