document

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: 2 Imported by: 0

Documentation

Overview

This mock is mainly designed to be used with a "user" implementation, where a user is not logged in, but a nil Document as an embedded field will cause runtime panics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(a map[string]interface{}) iface.Document

func NewEmpty

func NewEmpty() iface.Document

Types

type Document

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

func (*Document) Data

func (d *Document) Data() map[string]interface{}

func (*Document) Id

func (d *Document) Id() iface.Id

func (*Document) Remove

func (d *Document) Remove() error

func (*Document) Update

func (d *Document) Update(q map[string]interface{}) error

Jump to

Keyboard shortcuts

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