dbutil

package
v0.0.0-...-8f6a859 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2013 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Util

type Util struct {
	Gfs *mgo.GridFS
}

func (Util) GetExtensions

func (u Util) GetExtensions() (kp []types.IdCount, err error)

get a list of file extensions and their frequency count

func (Util) GetFileByFilename

func (u Util) GetFileByFilename(filename string) (this_file types.File, err error)

func (Util) GetFileRandom

func (u Util) GetFileRandom() (this_file types.File, err error)

func (Util) GetKeywords

func (u Util) GetKeywords() (kp []types.IdCount, err error)

get a list of keywords and their frequency count

func (Util) HasFileByFilename

func (u Util) HasFileByFilename(filename string) (exists bool, err error)

Check whether this types.File filename is on Mongo

func (Util) HasFileByKeyword

func (u Util) HasFileByKeyword(keyword string) (exists bool, err error)

func (Util) HasFileByMd5

func (u Util) HasFileByMd5(md5 string) (exists bool, err error)

Jump to

Keyboard shortcuts

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