Documentation ¶
Index ¶
- func CreateNoteHandler(s *Server) http.Handler
- func HealthStatusHandler(w http.ResponseWriter, r *http.Request)
- func MainFormHandler(s *Server) http.Handler
- func PublicFileHandler(w http.ResponseWriter, r *http.Request)
- func ReadNoteHandler(s *Server) http.Handler
- func ReadRawNoteHandler(s *Server) http.Handler
- func RedirectToHTTPSMiddleware(next http.Handler) http.Handler
- type Note
- type Server
- type ServerOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNoteHandler ¶
CreateNoteHandler save secret note to persistent datastore and return note ID.
func HealthStatusHandler ¶
func HealthStatusHandler(w http.ResponseWriter, r *http.Request)
Return status for health checks.
func MainFormHandler ¶
MainFormHandler renders main form.
func PublicFileHandler ¶
func PublicFileHandler(w http.ResponseWriter, r *http.Request)
PublicFileHandler get file from bindata or return not found error.
func ReadNoteHandler ¶
ReadNoteHandler print encrypted data for client-side decrypt and destroy note.
func ReadRawNoteHandler ¶
ReadRawNoteHandler print encrypted data for client-side decrypt and destroy note.
Types ¶
Click to show internal directories.
Click to hide internal directories.