Documentation ¶
Index ¶
- func CreateConversation(db *gorm.DB, params *params.CreateConversationParams) (schemas.ConversationMembersSchema, error)
- func CreateDefaultNotificationSetting(db *gorm.DB, userID string) (schemas.NotificationSettingSchema, error)
- func CreateMessage(db *gorm.DB, params *params.SendMessageParams) (schemas.MessageSchema, error)
- func CreateReadReceipt(db *gorm.DB, params params.CreateReadReceiptParams) error
- func CreateUser(db *gorm.DB, params *params.CreateUserParams) (schemas.UserSchema, error)
- func DeleteMessage(db *gorm.DB, messageID string) error
- func DoesUserExist(db *gorm.DB, ID string) (bool, error)
- func GetConversation(db *gorm.DB, conversationID string) (schemas.ConversationMembersSchema, error)
- func GetMessages(db *gorm.DB, conversationID string) (schemas.MessageListSchema, error)
- func GetNotificationSetting(db *gorm.DB, userID string) (schemas.NotificationSettingSchema, error)
- func GetUser(db *gorm.DB, ID string) (schemas.UserSchema, error)
- func ListConversations(db *gorm.DB) ([]schemas.ConversationSchema, error)
- func ListUsers(db *gorm.DB) (schemas.UserListSchema, error)
- func UpdateNotificationSetting(db *gorm.DB, userID string, params *params.UpdateNotificationSettingParams) (schemas.NotificationSettingSchema, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConversation ¶
func CreateConversation(db *gorm.DB, params *params.CreateConversationParams) (schemas.ConversationMembersSchema, error)
func CreateMessage ¶
func CreateMessage(db *gorm.DB, params *params.SendMessageParams) (schemas.MessageSchema, error)
func CreateReadReceipt ¶
func CreateReadReceipt(db *gorm.DB, params params.CreateReadReceiptParams) error
func CreateUser ¶
func CreateUser(db *gorm.DB, params *params.CreateUserParams) (schemas.UserSchema, error)
func GetConversation ¶
func GetMessages ¶
func GetNotificationSetting ¶
func ListConversations ¶
func ListConversations(db *gorm.DB) ([]schemas.ConversationSchema, error)
func UpdateNotificationSetting ¶
func UpdateNotificationSetting(db *gorm.DB, userID string, params *params.UpdateNotificationSettingParams) (schemas.NotificationSettingSchema, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.