chat

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2014 License: MIT Imports: 3 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, init InitFunc)

Types

type Adapter

type Adapter interface {
	Run()
	Send(string, string)
	Stop()
}

type InitFunc

type InitFunc func(Robot) Adapter

func Load

func Load(name string) (InitFunc, error)

type Message

type Message interface {
	UserID() string
	UserName() string
	ChannelID() string
	ChannelName() string
	Text() string
}

type Robot

type Robot interface {
	Name() string
	HTTP() *mux.Router
	Store() store.Adapter
	Chat() Adapter
	Receive(Message)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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