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