controllers

package
v0.0.0-...-8eb18f3 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFile

func AddFile(context echo.Context) error

func AddIndex

func AddIndex(context echo.Context) error

func CreatePassword

func CreatePassword(context echo.Context) (err error)

*

  • From a give password, return link

func DeleteFile

func DeleteFile(context echo.Context) error

func DeleteIndex

func DeleteIndex(context echo.Context) error

func DeletePassword

func DeletePassword(context echo.Context) error

*

  • From a given token, remove password from Redis.

func DownloadFile

func DownloadFile(context echo.Context) error

func HelpPassword

func HelpPassword(context echo.Context) error

*

  • Print help for API usage in a readable way for bash/curl call

func Index

func Index(context echo.Context) error

func IndexFile

func IndexFile(context echo.Context) error

func ReadFile

func ReadFile(context echo.Context) error

func ReadIndex

func ReadIndex(context echo.Context) error

func ReadPassword

func ReadPassword(context echo.Context) error

*

  • From a given token, return the initial password, we decrypt the password fetched from Redis.

func RevealPassword

func RevealPassword(context echo.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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