Documentation ¶
Index ¶
- type AgentLog
- type Branch
- type CommHandle
- type ForkOption
- type ForkOptions
- type Interval
- type Iterable
- type Iterator
- type Manager
- type MergeOption
- type MergeOptions
- type MergeStrategy
- type MergeStrategyFunc
- type MutableStream
- type Pointer
- func (p Pointer) Address() cid.Cid
- func (p Pointer) CompareTo(other Pointer) int
- func (p Pointer) IsChildOf(other Pointer) bool
- func (p Pointer) IsHead() bool
- func (p Pointer) IsParentOf(other Pointer) bool
- func (p Pointer) IsRoot() bool
- func (p Pointer) IsSiblingOf(other Pointer) bool
- func (p Pointer) IsZero() bool
- func (p Pointer) Less(other Pointer) bool
- func (p Pointer) Next() Pointer
- func (p Pointer) String() string
- type Reference
- type Repo
- type Resolver
- type Stream
- type ThoughLogListener
- type Thought
- type ThoughtLog
- func (cl *ThoughtLog) BeginNext() *Thought
- func (cl *ThoughtLog) Close() error
- func (cl *ThoughtLog) EpochBarrier()
- func (cl *ThoughtLog) ForkTemporary() *ThoughtLog
- func (cl *ThoughtLog) GC() error
- func (cl *ThoughtLog) Messages() []*Thought
- func (cl *ThoughtLog) MessagesIterator() iterators.Iterator[*Thought]
- func (cl *ThoughtLog) Name() string
- func (cl *ThoughtLog) PsiNodeName() string
- func (cl *ThoughtLog) Push(m *Thought) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentLog ¶
func NewAgentLog ¶
type Branch ¶
type Branch interface { psi.Node Iterable ParentBranch() Branch Base() *Thought Head() *Thought ParentPointer() Pointer BasePointer() Pointer HeadPointer() Pointer Interval() Interval Stream() Stream Mutate() MutableStream Fork(options ...ForkOption) MutableStream Len() int }
type ForkOption ¶
type ForkOption func(*ForkOptions)
type ForkOptions ¶
type ForkOptions struct { }
func NewForkOptions ¶
func NewForkOptions(opts ...ForkOption) ForkOptions
type Manager ¶
func NewManager ¶
func NewManager(g *graphstore.IndexedGraph, basePath string) *Manager
func (*Manager) GetOrCreateBranch ¶
func (*Manager) GetOrCreateStream ¶
func (m *Manager) GetOrCreateStream(name string) (log *ThoughtLog, err error)
func (*Manager) PsiNodeName ¶
type MergeOption ¶
type MergeOption func(*MergeOptions)
type MergeOptions ¶
type MergeOptions struct { }
func NewMergeOptions ¶
func NewMergeOptions(opts ...MergeOption) MergeOptions
type MergeStrategy ¶
type MergeStrategyFunc ¶
type MergeStrategyFunc func(ctx context.Context, s MutableStream, streams ...Stream) (Iterator, error)
func FlatTimeMergeStrategy ¶
func FlatTimeMergeStrategy() MergeStrategyFunc
func HierarchicalTimeMergeStrategy ¶
func HierarchicalTimeMergeStrategy(r Resolver) MergeStrategyFunc
func (MergeStrategyFunc) Apply ¶
func (f MergeStrategyFunc) Apply(ctx context.Context, s MutableStream, streams ...Stream) (Iterator, error)
type MutableStream ¶
type Pointer ¶
func RootPointer ¶
func RootPointer() Pointer
func (Pointer) IsParentOf ¶
func (Pointer) IsSiblingOf ¶
type Stream ¶
type Stream interface { Iterator Iterable Previous() bool Reversed() Stream Pointer() Pointer Thought() *Thought LA(n int) *Thought Peek() *Thought Seek(p Pointer) error Slice(from, to Pointer) Stream Fork(options ...ForkOption) MutableStream AsBranch() Branch }
func NewHierarchicalStream ¶
type ThoughLogListener ¶
type ThoughLogListener func(msg *Thought)
type Thought ¶
type Thought struct { psi.NodeBase Pointer Pointer From CommHandle Text string ReplyTo *CommHandle }
func NewThought ¶
func NewThought() *Thought
func (*Thought) NextThought ¶
func (*Thought) PreviousThought ¶
type ThoughtLog ¶
func NewThoughtLog ¶
func NewThoughtLog(manager *Manager, name string, basePath string) (*ThoughtLog, error)
func (*ThoughtLog) BeginNext ¶
func (cl *ThoughtLog) BeginNext() *Thought
func (*ThoughtLog) Close ¶
func (cl *ThoughtLog) Close() error
func (*ThoughtLog) EpochBarrier ¶
func (cl *ThoughtLog) EpochBarrier()
func (*ThoughtLog) ForkTemporary ¶
func (cl *ThoughtLog) ForkTemporary() *ThoughtLog
func (*ThoughtLog) GC ¶
func (cl *ThoughtLog) GC() error
func (*ThoughtLog) Messages ¶
func (cl *ThoughtLog) Messages() []*Thought
func (*ThoughtLog) MessagesIterator ¶
func (cl *ThoughtLog) MessagesIterator() iterators.Iterator[*Thought]
func (*ThoughtLog) Name ¶
func (cl *ThoughtLog) Name() string
func (*ThoughtLog) PsiNodeName ¶
func (cl *ThoughtLog) PsiNodeName() string
func (*ThoughtLog) Push ¶
func (cl *ThoughtLog) Push(m *Thought) error
Click to show internal directories.
Click to hide internal directories.