facebook

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: 9 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(options ChannelOptions, fabric ...neo.ContextFabric) (*Channel, error)

func (*Channel) CallContextDone

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

func (*Channel) GetContextFabric

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

func (*Channel) NewInput

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

func (*Channel) NewInputText

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

func (*Channel) OnContextIsDone

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

func (*Channel) OnNewContextCreated

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

func (*Channel) RegisterMessageEndpoint

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

func (*Channel) SetContextFabric

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

func (*Channel) ToHear

func (fb *Channel) ToHear() error

type ChannelOptions

type ChannelOptions struct {
	AccessToken string
	VerifyToken string
	PageID      string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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