chat

package
v0.0.0-...-c61a86e Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	UserJoin(username string) func()
	GetMessages() <-chan *models.Message
	SendMessage(username, message string)
}

type Usecase

type Usecase interface {
	UserJoin(username string)
	UserLeft(username string)

	SaveMessage(message *models.Message)
	GetMessages(count uint32) <-chan *models.Message
	SubscribeForMessages() <-chan *models.Message
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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