implementation

package
v0.0.0-...-0fca33f Latest Latest
Warning

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

Go to latest
Published: May 12, 2018 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func (*DB) GetASUsers

func (d *DB) GetASUsers() (map[string]*user.ASUser, error)

GetASUsers returns all Users of type AS mapped by the MXID

func (*DB) GetBotUser

func (d *DB) GetBotUser() (*user.BotUser, error)

GetBotUser returns all Users of type BOT

func (*DB) GetRealUsers

func (d *DB) GetRealUsers() (map[string]*user.RealUser, error)

GetRealUsers returns all Users of type REAL mapped by the MXID

func (*DB) GetRooms

func (d *DB) GetRooms() (rooms map[string]*room.Room, err error)

GetRooms returns all saved Rooms from the DB mapped by the alias

func (*DB) GetTwitchRooms

func (d *DB) GetTwitchRooms() (rooms map[string]string, err error)

func (*DB) GetTwitchUsers

func (d *DB) GetTwitchUsers() (map[string]*user.ASUser, error)

GetTwitchUsers returns all Users of type AS mapped by the Twitch Channel Name

func (*DB) SaveRoom

func (d *DB) SaveRoom(Room *room.Room) error

SaveRoom saves a room.Room{} struct to the Database

func (*DB) SaveUser

func (d *DB) SaveUser(userA interface{}) error

SaveUser saves a User struct to the Database

Jump to

Keyboard shortcuts

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