Documentation ¶
Index ¶
- func HandleUpdates(ctx context.Context, socketMode *socketmode.Client, api *slack.Client, ...)
- func Start(ctx context.Context)
- type SlackWriter
- func (w *SlackWriter) Close() error
- func (w *SlackWriter) Flush()
- func (w *SlackWriter) GetObjects() []*response_object_structs.ResponseObject
- func (w *SlackWriter) Header() http.Header
- func (w *SlackWriter) SetPreWriteCallback(fn func())
- func (w *SlackWriter) SetPrompt(prompt string)
- func (w *SlackWriter) Write(p []byte) (n int, err error)
- func (w *SlackWriter) WriteHeader(int)
- func (w *SlackWriter) WriteObject(obj *response_object_structs.ResponseObject) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleUpdates ¶
func HandleUpdates(ctx context.Context, socketMode *socketmode.Client, api *slack.Client, auth *slack.AuthTestResponse)
Types ¶
type SlackWriter ¶
type SlackWriter struct { Context context.Context Prompt string Bot *slack.Client ChatID string Type string ReplyID string Message *memory.Message // contains filtered or unexported fields }
func NewSlackWriter ¶
func (*SlackWriter) Close ¶
func (w *SlackWriter) Close() error
func (*SlackWriter) Flush ¶
func (w *SlackWriter) Flush()
func (*SlackWriter) GetObjects ¶
func (w *SlackWriter) GetObjects() []*response_object_structs.ResponseObject
func (*SlackWriter) Header ¶
func (w *SlackWriter) Header() http.Header
func (*SlackWriter) SetPreWriteCallback ¶
func (w *SlackWriter) SetPreWriteCallback(fn func())
func (*SlackWriter) SetPrompt ¶
func (w *SlackWriter) SetPrompt(prompt string)
func (*SlackWriter) WriteHeader ¶
func (w *SlackWriter) WriteHeader(int)
func (*SlackWriter) WriteObject ¶
func (w *SlackWriter) WriteObject(obj *response_object_structs.ResponseObject) error
Click to show internal directories.
Click to hide internal directories.