route

package
v0.0.0-...-a2954b9 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFile

func GetFile(res http.ResponseWriter, req *http.Request)

func GetFiles

func GetFiles(res http.ResponseWriter, req *http.Request)

func GetMemos

func GetMemos(res http.ResponseWriter, req *http.Request)

func HandleFile

func HandleFile(res http.ResponseWriter, req *http.Request)

func PostMemo

func PostMemo(res http.ResponseWriter, req *http.Request)

Types

type Memo

type Memo struct {
	Id       int    `json:"id"`
	Text     string `json:"text"`
	Modified time.Time
}

type Sizer

type Sizer interface {
	Size() int64
}

type TmpFile

type TmpFile struct {
	Id   int       `json:"id"`
	Name string    `json:"name"`
	Size int       `json:"size"`
	At   time.Time `json:"at"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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