Documentation
¶
Index ¶
- Variables
- type Config
- type ConversationResult
- type Handler
- func (h *Handler) ActionItemResult(air *shared.ActionItemResult) error
- func (h *Handler) EntityResult(er *shared.EntityResult) error
- func (h *Handler) FollowUpResult(fur *shared.FollowUpResult) error
- func (h *Handler) InitializedConversation(im *shared.InitializationResult) error
- func (h *Handler) MessageResult(mr *shared.MessageResult) error
- func (h *Handler) ParseConfig() error
- func (h *Handler) QuestionResult(qr *shared.QuestionResult) error
- func (h *Handler) SetClientPublisher(mp *interfacessdk.MessagePublisher)
- func (h *Handler) TeardownConversation(tm *shared.TeardownResult) error
- func (h *Handler) TopicResult(tr *shared.TopicResult) error
- func (h *Handler) TrackerResult(tr *shared.TrackerResult) error
- type HandlerOptions
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 (*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
Click to show internal directories.
Click to hide internal directories.