watch

package
v0.0.0-...-fde670f Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRoomStatus

func CheckRoomStatus(
	db *db.Database,
	id *api.RoomID,
) (newValue *api.RoomData, oldValue *api.RoomData, err error)

CheckRoomStatus provide new and old room status to compare, and save new status to database.

func Start

func Start(
	db *db.Database,
	id *api.RoomID,
) chan<- bool

Start a routine to watch room status change.

func StartAll

func StartAll(db *db.Database)

StartAll wathing task

Types

This section is empty.

Jump to

Keyboard shortcuts

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