repository

package
v0.0.0-...-9058691 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

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