models

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: GPL-3.0 Imports: 0 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 interface {
	GetId() int
	GetXid() string
	GetPrivate() bool
	GetName() string
	GetDescription() string
	GetOwnerId() string
}

type RoomStore

type RoomStore interface {
	AddRoom(room Room, owner_id string)
	FindRoomByName(name string) Room
	FindRoomByXid(xid string) Room
}

type User

type User interface {
	GetId() int
	GetXid() string
	GetName() string
	GetEmail() string
	GetPassword() string
}

type UserStore

type UserStore interface {
	AddUser(user User) User
	RemoveUser(user User)
	FindUserByXid(xid string) User
	GetAllUsers() []User
}

Jump to

Keyboard shortcuts

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