Documentation
¶
Index ¶
- type BrainLocal
- func (b *BrainLocal) ClearMemory()
- func (b *BrainLocal) DeleteMemory(key any)
- func (b *BrainLocal) Entry() error
- func (b *BrainLocal) EntryWithMemory(keysAndValues ...interface{}) error
- func (b *BrainLocal) ExistMemory(key any) bool
- func (b *BrainLocal) ForceSleep()
- func (b *BrainLocal) GetMemory(key any) any
- func (b *BrainLocal) GetState() core.BrainState
- func (b *BrainLocal) SetMemory(keysAndValues ...interface{}) error
- func (b *BrainLocal) Shutdown()
- func (b *BrainLocal) TrigLinks(links ...core.Link) error
- func (b *BrainLocal) Wait()
- type BrainMaintainer
- type BrainMemory
- type NeuronRunner
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrainLocal ¶
type BrainLocal struct {
// brain memories
BrainMemory
BrainMaintainer
// contains filtered or unexported fields
}
func BuildBrain ¶
func BuildBrain(blueprint core.Blueprint, withOpts ...Option) *BrainLocal
func (*BrainLocal) ClearMemory ¶
func (b *BrainLocal) ClearMemory()
func (*BrainLocal) DeleteMemory ¶
func (b *BrainLocal) DeleteMemory(key any)
func (*BrainLocal) Entry ¶
func (b *BrainLocal) Entry() error
func (*BrainLocal) EntryWithMemory ¶
func (b *BrainLocal) EntryWithMemory(keysAndValues ...interface{}) error
func (*BrainLocal) ExistMemory ¶
func (b *BrainLocal) ExistMemory(key any) bool
func (*BrainLocal) ForceSleep ¶
func (b *BrainLocal) ForceSleep()
func (*BrainLocal) GetMemory ¶
func (b *BrainLocal) GetMemory(key any) any
func (*BrainLocal) GetState ¶
func (b *BrainLocal) GetState() core.BrainState
func (*BrainLocal) SetMemory ¶
func (b *BrainLocal) SetMemory(keysAndValues ...interface{}) error
func (*BrainLocal) Shutdown ¶
func (b *BrainLocal) Shutdown()
func (*BrainLocal) Wait ¶
func (b *BrainLocal) Wait()
type BrainMaintainer ¶
type BrainMaintainer struct {
NeuronRunner
// contains filtered or unexported fields
}
type BrainMemory ¶
type BrainMemory struct {
// contains filtered or unexported fields
}
type NeuronRunner ¶
type NeuronRunner struct {
// contains filtered or unexported fields
}
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option configures a BrainLocal in build.
func WithLoggerLevel ¶
WithLoggerLevel sets the default logger with specific level
func WithMemorySetting ¶
WithMemorySetting sets the memory setting
func WithNeuronQueueLen ¶
WithNeuronQueueLen sets the neuron process queue length
func WithNeuronWorkerNum ¶
WithNeuronWorkerNum sets the neuron process worker number
Click to show internal directories.
Click to hide internal directories.