Documentation
¶
Index ¶
- type MessageStorage
- func (m *MessageStorage) CompactionCreate(ctx context.Context, thread api.ThreadID, seq api.Seq, ...) (api.Seq, error)
- func (m *MessageStorage) CompactionGet(ctx context.Context, thread api.ThreadID, beforeTail api.RoundID) (api.Compaction, error)
- func (m *MessageStorage) RecordAdd(ctx context.Context, thread api.ThreadID, seq api.Seq, origin api.RoundID, ...) (api.RecordID, api.Seq, error)
- func (m *MessageStorage) RecordList(ctx context.Context, thread api.ThreadID) ([]api.Record, error)
- func (m *MessageStorage) RecordPin(ctx context.Context, thread api.ThreadID, seq api.Seq, pin api.RoundID, ...) (api.Seq, error)
- func (m *MessageStorage) RoundAbort(ctx context.Context, thread api.ThreadID, seq api.Seq, round api.RoundID, ...) (api.Seq, error)
- func (m *MessageStorage) RoundAfter(ctx context.Context, thread api.ThreadID, start api.RoundID, limit int) ([]api.Round, error)
- func (m *MessageStorage) RoundBefore(ctx context.Context, thread api.ThreadID, start api.RoundID, limit int) ([]api.Round, error)
- func (m *MessageStorage) RoundError(ctx context.Context, thread api.ThreadID, seq api.Seq, round api.RoundID, ...) (api.Seq, error)
- func (m *MessageStorage) RoundInput(ctx context.Context, thread api.ThreadID, seq api.Seq, input api.Input) (api.RoundID, api.Seq, error)
- func (m *MessageStorage) RoundOk(ctx context.Context, thread api.ThreadID, seq api.Seq, round api.RoundID, ...) (api.Seq, error)
- func (m *MessageStorage) RoundRange(ctx context.Context, thread api.ThreadID, start api.RoundID, end api.RoundID) iter.Seq2[api.Round, error]
- func (m *MessageStorage) RoundRefuse(ctx context.Context, thread api.ThreadID, seq api.Seq, round api.RoundID, ...) (api.Seq, error)
- func (m *MessageStorage) RoundResult(ctx context.Context, thread api.ThreadID, seq api.Seq, round api.RoundID, ...) (api.Seq, error)
- func (m *MessageStorage) RoundSearch(ctx context.Context, thread api.ThreadID, exclude bool, query string, ...) ([]api.Hit, error)
- func (m *MessageStorage) ThreadBump(ctx context.Context, thread api.ThreadID) (api.Thread, error)
- func (m *MessageStorage) ThreadClone(ctx context.Context, source api.ThreadID, target api.ThreadID) (api.Thread, error)
- func (m *MessageStorage) ThreadCreate(ctx context.Context, id api.ThreadID) (api.Thread, error)
- func (m *MessageStorage) ThreadCut(ctx context.Context, id api.ThreadID, seq api.Seq, round api.RoundID) (api.Seq, error)
- func (m *MessageStorage) ThreadDelete(ctx context.Context, id api.ThreadID) error
- func (m *MessageStorage) ThreadGet(ctx context.Context, thread api.ThreadID) (api.Thread, error)
- func (m *MessageStorage) ThreadList(ctx context.Context, from, to time.Time, asc bool, limit int, name string) ([]api.Thread, error)
- func (m *MessageStorage) ThreadRename(ctx context.Context, id api.ThreadID, seq api.Seq, name string) (api.Seq, error)
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageStorage ¶
type MessageStorage struct {
// contains filtered or unexported fields
}
func (*MessageStorage) CompactionCreate ¶
func (*MessageStorage) CompactionGet ¶
func (m *MessageStorage) CompactionGet(ctx context.Context, thread api.ThreadID, beforeTail api.RoundID) (api.Compaction, error)
func (*MessageStorage) RecordList ¶
func (*MessageStorage) RoundAbort ¶
func (*MessageStorage) RoundAfter ¶
func (*MessageStorage) RoundBefore ¶
func (*MessageStorage) RoundError ¶
func (*MessageStorage) RoundInput ¶
func (*MessageStorage) RoundRange ¶
func (*MessageStorage) RoundRefuse ¶
func (*MessageStorage) RoundResult ¶
func (*MessageStorage) RoundSearch ¶
func (*MessageStorage) ThreadBump ¶
func (*MessageStorage) ThreadClone ¶
func (*MessageStorage) ThreadCreate ¶
func (*MessageStorage) ThreadDelete ¶
func (*MessageStorage) ThreadList ¶
Click to show internal directories.
Click to hide internal directories.