gifttt

package
v0.0.0-...-8f4bfd8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2016 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownBucket = errors.New("bucket '" + string(_BUCKET) + "' does not exist")
	ErrNotFound      = errors.New("key not found")
)

Functions

func NewGlobalScope

func NewGlobalScope(fset *ast.FileSet) twik.Scope

func StoreInit

func StoreInit(path string) error

Types

type APIServer

type APIServer struct {
	// contains filtered or unexported fields
}

func NewAPIServer

func NewAPIServer(ip, port string) *APIServer

func (*APIServer) Run

func (a *APIServer) Run()

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) Enclose

func (s *GlobalScope) Enclose(parent twik.Scope) error

func (*GlobalScope) Eval

func (s *GlobalScope) Eval(node ast.Node) (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 Rule

type Rule struct {
	Name string
	// contains filtered or unexported fields
}

func NewRule

func NewRule(name string, r io.Reader) (*Rule, error)

func (*Rule) Run

func (r *Rule) Run() 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 GetStore

func GetStore() *Store

func (*Store) Close

func (store *Store) Close()

close all connections to the underlying database file to be used by another process

func (*Store) Get

func (store *Store) Get(key string) (value string, err error)

get the content of a key from the specified bucket

func (*Store) Set

func (store *Store) Set(key, value string) error

set a key to the specified value.

type Value

type Value struct {
	Name  string      `json:"-"`
	Value interface{} `json:"value"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL