models

package
v0.0.0-...-d6aed12 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 4 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 {
	Name    string `name:"json"`
	Token   string `name:"json"`
	Clients []*hub.Client
	Hub     *hub.Hub
}

Room ...

func (*Room) Reader

func (room *Room) Reader(client *hub.Client) error

Reader ...

func (*Room) Writer

func (room *Room) Writer(client *hub.Client) error

Writer ...

type Rooms

type Rooms struct {
	Rooms []*Room
}

Rooms ...

func NewRooms

func NewRooms() *Rooms

NewRooms ...

func (*Rooms) Create

func (rooms *Rooms) Create(room *Room)

Create ...

func (*Rooms) Delete

func (rooms *Rooms) Delete(room *Room)

Delete ...

Jump to

Keyboard shortcuts

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