This commit is contained in:
@@ -16,7 +16,9 @@ var (
|
||||
|
||||
// Repository is the persistence port required by the chat use case.
|
||||
type Repository interface {
|
||||
CreateUser(ctx context.Context, username, displayName string) (domain.User, error)
|
||||
Ready(ctx context.Context) error
|
||||
UserByUsername(ctx context.Context, username string) (domain.User, string, bool, error)
|
||||
CreateUser(ctx context.Context, username, displayName, passwordHash string) (domain.User, error)
|
||||
User(ctx context.Context, id string) (domain.User, bool, error)
|
||||
CreateChat(ctx context.Context, title string, memberIDs []string) (domain.Chat, error)
|
||||
ChatForUser(ctx context.Context, chatID, userID string) (domain.Chat, error)
|
||||
|
||||
Reference in New Issue
Block a user