persistence

package
v0.0.0-...-83457bb Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDefaultNotificationSetting

func CreateDefaultNotificationSetting(db *gorm.DB, userID string) (schemas.NotificationSettingSchema, 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 DeleteMessage

func DeleteMessage(db *gorm.DB, messageID string) error

func DoesUserExist

func DoesUserExist(db *gorm.DB, ID string) (bool, error)

func GetConversation

func GetConversation(db *gorm.DB, conversationID string) (schemas.ConversationMembersSchema, error)

func GetMessages

func GetMessages(db *gorm.DB, conversationID string) (schemas.MessageListSchema, error)

func GetNotificationSetting

func GetNotificationSetting(db *gorm.DB, userID string) (schemas.NotificationSettingSchema, error)

func GetUser

func GetUser(db *gorm.DB, ID string) (schemas.UserSchema, error)

func ListConversations

func ListConversations(db *gorm.DB) ([]schemas.ConversationSchema, error)

func ListUsers

func ListUsers(db *gorm.DB) (schemas.UserListSchema, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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