Documentation
¶
Index ¶
- Variables
- func Delete(ctx context.Context, storage api.MessageStorage, id api.ThreadID) error
- func Rename(ctx context.Context, storage api.MessageStorage, id api.ThreadID, name string) error
- type Command
- type Errorable
- type Link
- func (l Link) Close()
- func (l Link) Compact(op Operation) Command
- func (l Link) ID() api.ThreadID
- func (l Link) Init() Command
- func (l Link) Input(op Operation, input api.Input) Command
- func (l Link) Receiver() (receive <-chan Message, done <-chan struct{})
- func (l Link) Record(op Operation, kind string, attrs map[string]any, data any) Command
- func (l Link) Retry(op Operation) Command
- func (l Link) Rewind(op Operation, round api.RoundID, input api.Input) Command
- func (l Link) Send(op Operation, input api.Input) Command
- func (l Link) Sender() chan<- Command
- func (l Link) Stop(op Operation) Command
- func (l Link) Thread() api.InstanceThread
- func (l Link) Unsend(op Operation) Command
- func (l Link) Valid() bool
- type Message
- type MessageEvent
- type MessageInit
- type MessageReload
- type Operation
- type Result
- type ResultResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLinked = errors.New("thread: already linked to this page")
Functions ¶
Types ¶
type Link ¶
type Link struct {
// contains filtered or unexported fields
}
func (Link) Thread ¶
func (l Link) Thread() api.InstanceThread
type MessageEvent ¶
func (MessageEvent) Ack ¶
func (m MessageEvent) Ack()
func (MessageEvent) Add ¶
func (m MessageEvent) Add()
type MessageInit ¶
func NewMessageInit ¶
func NewMessageInit(state api.ChatState, fs api.FS) MessageInit
func (MessageInit) Ack ¶
func (m MessageInit) Ack()
func (MessageInit) Add ¶
func (m MessageInit) Add()
func (MessageInit) Enabled ¶
func (m MessageInit) Enabled() bool
type MessageReload ¶
type MessageReload struct {
// contains filtered or unexported fields
}
func NewMessageReload ¶
func NewMessageReload(op Operation) MessageReload
func (MessageReload) Ack ¶
func (m MessageReload) Ack()
func (MessageReload) Add ¶
func (m MessageReload) Add()
type ResultResponse ¶
func NewResultResponse ¶
func NewResultResponse[T any]() ResultResponse[T]
func (ResultResponse[T]) Ch ¶
func (c ResultResponse[T]) Ch() chan Result[T]
func (ResultResponse[T]) Err ¶
func (c ResultResponse[T]) Err(err error)
func (ResultResponse[T]) Ok ¶
func (c ResultResponse[T]) Ok(v T)
func (ResultResponse[T]) Receive ¶
func (c ResultResponse[T]) Receive() (T, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.