common

package
v0.0.0-...-e069ee5 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	UploadTime   time.Time `datastore:"upload_time"`
	LastModified time.Time `datastore:"last_modified"`
	Version      int       `datastore:"version"`
	Size         int64     `datastore:"size"`
	Type         string    `datastore:type`
	Description  string    `datastore:description`
}

type Holder

type Holder struct {
	File        string
	Size        int64
	User        User
	ContentType string
	Description string
	Object      interface{}
}

func (*Holder) GetProfile

func (h *Holder) GetProfile() Profile

func (*Holder) GetProfileID

func (h *Holder) GetProfileID() string

type Profile

type Profile struct {
	FirstName string `datastore:"first_name"`
	LastName  string `datastore:"last_name"`
}

type Response

type Response struct {
	File         string    `json:"file"`
	UploadTime   time.Time `json:"upload_time"`
	LastModified time.Time `json:"last_modified"`
	Version      int       `json:"version"`
	Size         int64     `json:"size"`
	Type         string    `json:"type"`
	Description  string    `json:"description"`
}

type User

type User struct {
	// First name of the user
	FirstName string
	// Last name of the user
	LastName string
	// ID of the user's profile
	Profile string
}

Jump to

Keyboard shortcuts

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