Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoomRepository ¶
type RoomRepository interface { CreateRoom(ctx context.Context, room *models.Room) error GetRoomsByUserId(ctx context.Context, userId string) ([]*models.Room, error) GetAllRooms(ctx context.Context) ([]*models.Room, error) CountRooms(ctx context.Context, userId string) (int, error) //sync to redis FetchChatBetween(ctx context.Context, username1, username2, fromTS, toTS string) ([]models.Chat, error) FetchContactList(ctx context.Context, username string) ([]models.ContactList, error) CreateFetchChatBetweenIndex() }
func NewRoomRepository ¶
func NewRoomRepository(pgDB *gorm.DB, redisDB *redis.Client) RoomRepository
Click to show internal directories.
Click to hide internal directories.