Documentation
¶
Index ¶
- Variables
- type BindInput
- type BoundArg
- type BoundQuery
- type Config
- type Learner
- func (l *Learner) Bind(prev core.QueryEvent, tmpl core.Template) (BoundQuery, error)
- func (l *Learner) BindPlan(input BindInput) (BoundQuery, error)
- func (l *Learner) ObserveTransition(prev core.QueryEvent, curr core.QueryEvent)
- func (l *Learner) Restore(snapshot Snapshot) error
- func (l *Learner) RulesLearned() int
- func (l *Learner) Snapshot() Snapshot
- type Rule
- type Snapshot
- type Source
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnboundArgument = errors.New("unbound argument")
Functions ¶
This section is empty.
Types ¶
type BoundQuery ¶
type Learner ¶
type Learner struct {
// contains filtered or unexported fields
}
func (*Learner) Bind ¶
func (l *Learner) Bind(prev core.QueryEvent, tmpl core.Template) (BoundQuery, error)
func (*Learner) ObserveTransition ¶
func (l *Learner) ObserveTransition(prev core.QueryEvent, curr core.QueryEvent)
func (*Learner) RulesLearned ¶
type Rule ¶
type Rule struct {
FromTemplate core.TemplateID
ToTemplate core.TemplateID
TargetArg int
SourceArg int
Trials int
Successes int
LastSeen uint64
}
func (Rule) Confidence ¶
Click to show internal directories.
Click to hide internal directories.