Documentation ¶
Index ¶
- Variables
- func NewGlobalScope(fset *ast.FileSet) twik.Scope
- func StoreInit(path string) error
- type APIServer
- type GlobalScope
- func (s *GlobalScope) Branch() twik.Scope
- func (s *GlobalScope) Create(symbol string, value interface{}) error
- func (s *GlobalScope) Enclose(parent twik.Scope) error
- func (s *GlobalScope) Eval(node ast.Node) (interface{}, error)
- func (s *GlobalScope) Get(symbol string) (interface{}, error)
- func (s *GlobalScope) Set(symbol string, value interface{}) error
- type Rule
- type RuleManager
- type Store
- type Value
- type VariableManager
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type APIServer ¶
type APIServer struct {
// contains filtered or unexported fields
}
func NewAPIServer ¶
type GlobalScope ¶
type GlobalScope struct {
// contains filtered or unexported fields
}
the GlobalScope encapsulated over the DefaultScope of the LISP interpreter. Get/Set will be delegated to it, so we can answer with the data in the VariableManager
func (*GlobalScope) Branch ¶
func (s *GlobalScope) Branch() twik.Scope
func (*GlobalScope) Create ¶
func (s *GlobalScope) Create(symbol string, value interface{}) error
func (*GlobalScope) Get ¶
func (s *GlobalScope) Get(symbol string) (interface{}, error)
func (*GlobalScope) Set ¶
func (s *GlobalScope) Set(symbol string, value interface{}) error
type RuleManager ¶
type RuleManager struct {
// contains filtered or unexported fields
}
func NewRuleManager ¶
func NewRuleManager(path string) *RuleManager
func (*RuleManager) Run ¶
func (m *RuleManager) Run()
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Close ¶
func (store *Store) Close()
close all connections to the underlying database file to be used by another process
type VariableManager ¶
type VariableManager struct { Updates chan *Value // contains filtered or unexported fields }
func GetManager ¶
func GetManager() *VariableManager
func (*VariableManager) Get ¶
func (vm *VariableManager) Get(name string) (interface{}, error)
func (*VariableManager) Set ¶
func (vm *VariableManager) Set(name string, value interface{}) error
Click to show internal directories.
Click to hide internal directories.