model

package module
v0.0.0-...-5e60bc5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2015 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	Name string `bson:"Name,omitempty" json:"name"`
}

type Store

type Store struct {
	Session *mgo.Session
	// contains filtered or unexported fields
}

func NewStore

func NewStore(dial string, dbName string, collection string) (*Store, error)

func (*Store) All

func (s *Store) All() ([]Image, error)

func (*Store) Close

func (s *Store) Close()

func (*Store) Insert

func (s *Store) Insert(model *Image) error

Jump to

Keyboard shortcuts

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