uploads

package
v0.0.0-...-37d38c9 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Config *config.Config
}

Handler contains all the handlers in the uploads package

func (*Handler) GetHandler

func (h *Handler) GetHandler(ctx *fiber.Ctx) error

GetHandler is a handler used to get the DB file

func (*Handler) Init

func (h *Handler) Init(cfg *config.Config)

Init initializes the Handler struct

func (*Handler) NonceHandler

func (h *Handler) NonceHandler(ctx *fiber.Ctx) error

NonceHandler gives the latest upload nonce

func (*Handler) UploadHandler

func (h *Handler) UploadHandler(ctx *fiber.Ctx) error

UploadHandler handles the upload of the DB and then returns a nonce

Jump to

Keyboard shortcuts

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