emitable

package module
v0.0.0-...-673549a Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: MIT Imports: 0 Imported by: 2

README

Go Carrot

FSM Emitable

Emitable contains all of the types that are recommended for all fsm chatbot targets to implement in their emitter.

License

MIT

Documentation

Overview

Package emitable defines all of the types that are recommended for all fsm chatbot targets to implement in their emitter.

All emitters should also handle strings, in addition to what is defined here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audio

type Audio struct {
	URL string
}

Audio is a struct that represents an audio file to be emitted

type File

type File struct {
	URL string
}

File is a struct that represents a generic file to be emitted

type Image

type Image struct {
	URL string
}

Image is a struct that represents an image to be emitted

type QuickReply

type QuickReply struct {
	Message       string
	Replies       []string
	RepliesFormat string
}

QuickReply is a struct that represents an array of possible responses from a user

type Sleep

type Sleep struct {
	LengthMillis int
}

Sleep is a struct to represent that the bot should pause for some length of time.

type Typing

type Typing struct {
	Enabled bool
}

Typing is a struct to represent that the bot is typing. It is expected to be enabled and disabled

type Video

type Video struct {
	URL string
}

Video is a struct that represents an video to be emitted

Jump to

Keyboard shortcuts

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