mongomedia

package
v0.0.0-...-0bbd9cc Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2012 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = Configuration{
	GridFSName: "media",
}

Functions

func Init

func Init(name string) error

Init must be called after mongo.Init()

Types

type Configuration

type Configuration struct {
	GridFSName string
}

func (*Configuration) Close

func (self *Configuration) Close() error

func (*Configuration) Init

func (self *Configuration) Init() error

func (*Configuration) Name

func (self *Configuration) Name() string

type ImageDoc

type ImageDoc struct {
	mongo.DocumentBase `bson:",inline"`
	media.Image        `bson:",inline"`
}

func (*ImageDoc) GetAndInitImage

func (self *ImageDoc) GetAndInitImage() *media.Image

Jump to

Keyboard shortcuts

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