interfaces

package
v0.0.0-...-22804f9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2012 License: BSD-2-Clause-Views Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	Fire(eventname string, params ...interface{})
	Iterate(eventname string, stopfunc interface{}, params ...interface{})
}

type Filter

type Filter interface {
	Ids() ([]bson.ObjectId, error)
	AddQuery(map[string]interface{}) Filter
	Clone() Filter
	Reduce(...Filter) (Filter, error)
	Subject() string
	AddParents(string, []bson.ObjectId)
	Modifiers() Modifiers
	Count() (int, error)
	Iterate(func(map[string]interface{}, Grabbed) error) error
	// --
	FindOne() (map[string]interface{}, error)
	Find() ([]interface{}, error)
	Insert(map[string]interface{}) error
	// InsertAll([]map[string]interface{}) errors
	Update(map[string]interface{}) error
	UpdateAll(map[string]interface{}) (int, error)
	Remove() error
	RemoveAll() (int, error)
}

type Grabbed

type Grabbed interface {
	Update(map[string]interface{}) error
	Remove() error
}

type Instance

type Instance interface {
	HasMethod(string) bool
	MethodNames() []string
	Method(string) Method
}

type Method

type Method interface {
	Call(interface{}, ...interface{}) error
	Matches(interface{}) bool
	InputTypes() []reflect.Type
	OutputTypes() []reflect.Type
}

type Modifiers

type Modifiers interface {
	Sort() []string
	Limit() int
	Skip() int
}

type Module

type Module interface {
	Instance() Instance
	Exists() bool
}

type Set

type Set interface {
	Skip(int)
	Limit(int)
	Sort(...string)
	Count(map[string]interface{}) (int, error)
	FindOne(map[string]interface{}) (map[string]interface{}, error)
	Find(map[string]interface{}) ([]interface{}, error)
	Insert(map[string]interface{}) error
	// InsertAll([]map[string]interface{}) errors
	Update(map[string]interface{}, map[string]interface{}) error
	UpdateAll(map[string]interface{}, map[string]interface{}) (int, error)
	Remove(map[string]interface{}) error
	RemoveAll(map[string]interface{}) (int, error)
	Name() string
}

type Speaker

type Speaker interface {
	IsNoun(string) bool
	NounHasVerb(string, string) bool
}

Jump to

Keyboard shortcuts

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