terminal

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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