terminal

package
v0.0.0-...-d110d06 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

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

func NewChannel

func NewChannel(opts *ChannelOptions, fabric ...neo.ContextFabric) *Channel

func (*Channel) CallContextDone

func (term *Channel) CallContextDone(c *neo.Context)

func (*Channel) GetContextFabric

func (term *Channel) GetContextFabric() neo.ContextFabric

func (*Channel) NewInput

func (term *Channel) NewInput(data neo.InputData, i []neo.Intent, e []neo.Entity) *neo.Input

func (*Channel) NewInputText

func (term *Channel) NewInputText(text string, i []neo.Intent, e []neo.Entity) *neo.Input

func (*Channel) OnContextIsDone

func (term *Channel) OnContextIsDone(callback func(c *neo.Context))

func (*Channel) OnNewContextCreated

func (term *Channel) OnNewContextCreated(callback func(c *neo.Context))

func (*Channel) RegisterMessageEndpoint

func (term *Channel) RegisterMessageEndpoint(handler neo.MiddleHandler) error

func (*Channel) SetContextFabric

func (term *Channel) SetContextFabric(fabric neo.ContextFabric)

func (*Channel) ToHear

func (term *Channel) ToHear() error

type ChannelOptions

type ChannelOptions struct {
	PersonIcon string
	PersonName string
	BotIcon    string
	BotName    string
	SaysSymbol string
}

Jump to

Keyboard shortcuts

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