handlers

package
v0.0.0-...-cb6e517 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnhandledMessage runhandled message from symbl-proxy-dataminer
	ErrUnhandledMessage = errors.New("unhandled message from symbl-proxy-dataminer")
)

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(options HandlerOptions) *Handler

func (*Handler) EntityResponseMessage

func (h *Handler) EntityResponseMessage(er *shared.EntityResponse) error

func (*Handler) InitializedConversation

func (h *Handler) InitializedConversation(im *shared.InitializationResponse) error

func (*Handler) InsightResponseMessage

func (h *Handler) InsightResponseMessage(ir *shared.InsightResponse) error

func (*Handler) MessageResponseMessage

func (h *Handler) MessageResponseMessage(mr *shared.MessageResponse) error

func (*Handler) RecognitionResultMessage

func (h *Handler) RecognitionResultMessage(rr *shared.RecognitionResponse) error

func (*Handler) SetClientPublisher

func (h *Handler) SetClientPublisher(mp *interfacessdk.MessagePublisher)

func (*Handler) TeardownConversation

func (h *Handler) TeardownConversation(tm *shared.TeardownResponse) error

func (*Handler) TopicResponseMessage

func (h *Handler) TopicResponseMessage(tr *shared.TopicResponse) error

func (*Handler) TrackerResponseMessage

func (h *Handler) TrackerResponseMessage(tr *shared.TrackerResponse) error

func (*Handler) UnhandledMessage

func (h *Handler) UnhandledMessage(byMsg []byte) error

func (*Handler) UserDefinedMessage

func (h *Handler) UserDefinedMessage(data []byte) error

type HandlerOptions

type HandlerOptions struct {
	Session     *neo4j.SessionWithContext // retrieve insights
	SymblClient *symbl.RestClient
}

Handler for messages

type StatisticType

type StatisticType int
const (
	StatType1Month StatisticType = iota
	StatType1Week
	StatType2Days
	StatType1Day
	StatType4Hours
	StatType1Hour
	StatType30Mins
)

Jump to

Keyboard shortcuts

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