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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidInput required input was not found
	ErrInvalidInput = errors.New("required input was not found")

	// ErrUnhandledMessage unhandled message from asynchronous email plugin
	ErrUnhandledMessage = errors.New("unhandled message from asynchronous email plugin")

	// ErrConversationNotFound conversation not found
	ErrConversationNotFound = errors.New("conversation not found")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	WebhookURI      string   `json:"webhookURI,omitempty"`
	WebhookPassword string   `json:"webhookPassword,omitempty"`
	SkipServerAuth  bool     `json:"skipServerAuth,omitempty"`
	QuestionMatch   []string `json:"questionMatch,omitempty"`
	FollowUpMatch   []string `json:"followUpMatch,omitempty"`
	ActionItemMatch []string `json:"actionItemMatch,omitempty"`
	TopicMatch      []string `json:"topicMatch,omitempty"`
	TrackerMatch    []string `json:"trackerMatch,omitempty"`
	EntityMatch     []string `json:"entityMatch,omitempty"`
}

Config

type ConversationResult

type ConversationResult struct {
	ConversationID   string                          `json:"conversationId,omitempty"`
	MessageResult    *sdkinterfaces.MessageResult    `json:"messageResult,omitempty"`
	QuestionResult   *sdkinterfaces.QuestionResult   `json:"questionResult,omitempty"`
	FollowUpResult   *sdkinterfaces.FollowUpResult   `json:"followUpResult,omitempty"`
	ActionItemResult *sdkinterfaces.ActionItemResult `json:"actionItemResult,omitempty"`
	TopicResult      *sdkinterfaces.TopicResult      `json:"topicResult,omitempty"`
	TrackerResult    *sdkinterfaces.TrackerResult    `json:"trackerResult,omitempty"`
	EntityResult     *sdkinterfaces.EntityResult     `json:"entityResult,omitempty"`
}

Single Transaction

type Handler

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

func NewHandler

func NewHandler(options HandlerOptions) *Handler

func (*Handler) ActionItemResult

func (h *Handler) ActionItemResult(air *shared.ActionItemResult) error

func (*Handler) EntityResult

func (h *Handler) EntityResult(er *shared.EntityResult) error

func (*Handler) FollowUpResult

func (h *Handler) FollowUpResult(fur *shared.FollowUpResult) error

func (*Handler) InitializedConversation

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

func (*Handler) MessageResult

func (h *Handler) MessageResult(mr *shared.MessageResult) error

func (*Handler) ParseConfig

func (h *Handler) ParseConfig() error

func (*Handler) QuestionResult

func (h *Handler) QuestionResult(qr *shared.QuestionResult) error

func (*Handler) SetClientPublisher

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

func (*Handler) TeardownConversation

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

func (*Handler) TopicResult

func (h *Handler) TopicResult(tr *shared.TopicResult) error

func (*Handler) TrackerResult

func (h *Handler) TrackerResult(tr *shared.TrackerResult) error

type HandlerOptions

type HandlerOptions struct {
	ConfigFile string
}

Handler for messages

Jump to

Keyboard shortcuts

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