bots

package
v0.0.0-...-ba21cce Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Template = "chat.tmpl"

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachmentBots

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

func NewAttachmentBots

func NewAttachmentBots(t *template.Template, pc PageContext) (*AttachmentBots, error)

func (*AttachmentBots) ConnectionHandler

func (b *AttachmentBots) ConnectionHandler() http.HandlerFunc

func (*AttachmentBots) ServeHTTP

func (b *AttachmentBots) ServeHTTP(res http.ResponseWriter, req *http.Request)

type ConversationBots

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

func NewConversationBots

func NewConversationBots(t *template.Template, pc PageContext) (*ConversationBots, error)

func (*ConversationBots) ConnectionHandler

func (b *ConversationBots) ConnectionHandler() http.HandlerFunc

func (*ConversationBots) ServeHTTP

func (b *ConversationBots) ServeHTTP(res http.ResponseWriter, req *http.Request)

type EchoBots

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

func NewEchoBots

func NewEchoBots(t *template.Template, pc PageContext) (*EchoBots, error)

func (*EchoBots) ConnectionHandler

func (b *EchoBots) ConnectionHandler() http.HandlerFunc

func (*EchoBots) ServeHTTP

func (b *EchoBots) ServeHTTP(res http.ResponseWriter, req *http.Request)

type PageContext

type PageContext struct {
	Title  string
	Script string
}

type RedisBots

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

func NewRedisBots

func NewRedisBots(redisHost string, t *template.Template, pc PageContext) (*RedisBots, error)

func (*RedisBots) ConnectionHandler

func (b *RedisBots) ConnectionHandler() http.HandlerFunc

func (*RedisBots) ServeHTTP

func (b *RedisBots) ServeHTTP(res http.ResponseWriter, req *http.Request)

type ThreadBots

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

func NewThreadBots

func NewThreadBots(t *template.Template, pc PageContext) (*ThreadBots, error)

func (*ThreadBots) ConnectionHandler

func (b *ThreadBots) ConnectionHandler() http.HandlerFunc

func (*ThreadBots) ServeHTTP

func (b *ThreadBots) ServeHTTP(res http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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