Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { SelectUser(ctx context.Context, email string) (*model.User, error) UpsertUser(ctx context.Context, name, email, pictureUrl string, updatedAt time.Time) error SelectRoomUsers(ctx context.Context, roomID string) ([]*response.RoomUser, error) SelectMessages(ctx context.Context, roomID string, lastReadAt time.Time) ([]*model.Message, error) InsertMessage(ctx context.Context, roomID, userID, content string, messageType model.MessageType, postedAt time.Time) error IsUserInRoom(ctx context.Context, userID, roomID string) (bool, error) }
interface for database operations.
Click to show internal directories.
Click to hide internal directories.