note

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

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

Go to latest
Published: Sep 10, 2019 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAXNOTESIZE = 5242880 // 5 MB
)

Variables

This section is empty.

Functions

func CreateNote

func CreateNote(w http.ResponseWriter, r *http.Request)

func DeleteNotePOST

func DeleteNotePOST(w http.ResponseWriter, r *http.Request)

func NoteGET

func NoteGET(w http.ResponseWriter, r *http.Request)

func UnlockNotePOST

func UnlockNotePOST(w http.ResponseWriter, r *http.Request)

Types

type Note

type Note struct {
	ID        string `json:"id"`
	Content   string `json:"content"`
	CanDelete bool   `json:"canDelete"`
	Password  []byte `json:"password"`
}

Jump to

Keyboard shortcuts

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