set

package
v0.0.0-...-ce71dfa Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2012 License: BSD-2-Clause-Views Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsId

func IsId(encodedForm string) bool

This can be problematic, easily triggers false positives.

func New

func New(db *mgo.Database, coll string) iface.Set

func NewId

func NewId() iface.Id

func ToId

func ToId(encodedForm string) iface.Id

Types

type Id

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

func (*Id) IAmAnId

func (id *Id) IAmAnId()

func (*Id) String

func (id *Id) String() string

type Set

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

func (*Set) Count

func (s *Set) Count(q map[string]interface{}) (int, error)

func (*Set) Find

func (s *Set) Find(q map[string]interface{}) ([]map[string]interface{}, error)

func (*Set) FindOne

func (s *Set) FindOne(q map[string]interface{}) (map[string]interface{}, error)

func (*Set) Insert

func (s *Set) Insert(d map[string]interface{}) error

func (*Set) Limit

func (s *Set) Limit(i int)

func (*Set) Name

func (s *Set) Name() string

func (*Set) Remove

func (s *Set) Remove(q map[string]interface{}) error

func (*Set) RemoveAll

func (s *Set) RemoveAll(q map[string]interface{}) (int, error)

func (*Set) Skip

func (s *Set) Skip(i int)

func (*Set) Sort

func (s *Set) Sort(str ...string)

func (*Set) Update

func (s *Set) Update(q map[string]interface{}, updQuery map[string]interface{}) error

func (*Set) UpdateAll

func (s *Set) UpdateAll(q map[string]interface{}, updQuery map[string]interface{}) (int, error)

Jump to

Keyboard shortcuts

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