mock

package
v0.0.0-...-a2b2d1c Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatMessage

type ChatMessage struct {
	User    string
	Message string
}

type PlatformClient

type PlatformClient struct {
	Chat chan ChatMessage
	// contains filtered or unexported fields
}

func NewPlatformClient

func NewPlatformClient(name string) *PlatformClient

func (*PlatformClient) Connect

func (c *PlatformClient) Connect()

func (*PlatformClient) SendMessage

func (c *PlatformClient) SendMessage(m string)

type StdinDemux

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

func StdinDemuxInstance

func StdinDemuxInstance() *StdinDemux

func (*StdinDemux) Listen

func (d *StdinDemux) Listen()

func (*StdinDemux) Register

func (d *StdinDemux) Register(name string, chatCh chan<- ChatMessage)

Jump to

Keyboard shortcuts

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