types

package
v0.0.0-...-7fac419 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2019 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Metadata   Info ",omitempty"
	Md5        string
	ChunkSize  int
	UploadDate time.Time
	Length     uint64
	Filename   string ",omitempty"
}

func (*File) ContentType

func (f *File) ContentType() string

ContentType guesses the mime-type by the file's extension

func (*File) IsAudio

func (f *File) IsAudio() bool

func (*File) IsImage

func (f *File) IsImage() bool

func (*File) IsVideo

func (f *File) IsVideo() bool

type IdCount

type IdCount struct {
	Id    string "_id"
	Value int
	Root  string
}

IdCount structure used for collecting values for a tag cloud

type Info

type Info struct {
	Keywords  []string // tags
	Ip        string   // who uploaded it
	Random    int64
	TimeStamp time.Time "timestamp,omitempty"
}

Jump to

Keyboard shortcuts

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