models

package
v0.0.0-...-f5e8e9b Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbUser

type DbUser interface {
	User
	GetUsername() string
	GetPassword() string
}

type Room

type Room interface {
	GetId() string
	GetName() string
	GetPrivate() bool
}

type RoomRepository

type RoomRepository interface {
	AddRoom(room Room) error
	FindRoomByName(name string) (Room, error)
}

type User

type User interface {
	GetID() string
	GetName() string
}

type UserRepository

type UserRepository interface {
	AddUser(user User) error
	AddDbUser(id uuid.UUID, name, username, password string) (DbUser, error)
	RemoveUser(user User) error
	FindUserById(id string) (User, error)
	GetAllUsers() ([]User, error)
	FindUserByUsername(username string) (DbUser, error)
}

Jump to

Keyboard shortcuts

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