repository

package
v0.0.0-...-f4a5c50 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Room

type Room struct {
	Id      string
	Name    string
	Private bool
}

func (*Room) GetId

func (room *Room) GetId() string

func (*Room) GetName

func (room *Room) GetName() string

func (*Room) GetPrivate

func (room *Room) GetPrivate() bool

type RoomRepository

type RoomRepository struct {
	Db *sql.DB
}

func (*RoomRepository) AddRoom

func (repo *RoomRepository) AddRoom(room models.Room)

func (*RoomRepository) FindRoomByName

func (repo *RoomRepository) FindRoomByName(name string) models.Room

type User

type User struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

func (*User) GetId

func (user *User) GetId() string

func (*User) GetName

func (user *User) GetName() string

type UserRepository

type UserRepository struct {
	Db *sql.DB
}

func (*UserRepository) AddUser

func (repo *UserRepository) AddUser(user models.User)

func (*UserRepository) FindUserById

func (repo *UserRepository) FindUserById(ID string) models.User

func (*UserRepository) GetAllUsers

func (repo *UserRepository) GetAllUsers() []models.User

func (*UserRepository) RemoveUser

func (repo *UserRepository) RemoveUser(user models.User)

Jump to

Keyboard shortcuts

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