Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Usecase ¶
type Usecase interface { GetUser(ctx context.Context, email string) (*model.User, error) VerifyIDToken(ctx context.Context, token string) error PostLogin(ctx context.Context, token string) (string, error) VerifySessionCookie(ctx context.Context, session string) (*auth.Token, error) GetRoomUsers(ctx context.Context, roomID string) ([]*response.RoomUser, error) GetMessages(ctx context.Context, roomID string, lastReadAt time.Time) ([]*response.Message, error) PostMessage(ctx context.Context, roomID, userID, content string, messageType model.MessageType, postedAt time.Time) error SubscribeMessages(ctx context.Context, conn *net.Conn, email string) error }
func New ¶
func New(database repository.Database, firebase repository.Firebase, logger logger.Logger) Usecase
Click to show internal directories.
Click to hide internal directories.