Versions in this module Expand all Collapse all v0 v0.0.3 Sep 22, 2023 Changes in this version + func Status(c *fiber.Ctx, cfg *cfg.Config) error v0.0.2 Mar 31, 2023 Changes in this version + func FormModify(c *fiber.Ctx, cfg *cfg.Config, db *Db) error + func UploadModify(c *fiber.Ctx, cfg *cfg.Config, db *Db) error v0.0.1 Mar 30, 2023 Changes in this version + const ApiVersion + const Bucket + var Apikeys []cfg.Apicontext + var Sessionstore *session.Store + func AuthErrHandler(ctx *fiber.Ctx, err error) error + func AuthSetApikeys(keys []cfg.Apicontext) + func AuthValidateAPIKey(c *fiber.Ctx, key string) (bool, error) + func AuthValidateOnetimeKey(c *fiber.Ctx, key string, db *Db) (bool, error) + func BackgroundCleaner(conf *cfg.Config, db *Db) chan bool + func DeleteExpiredUploads(conf *cfg.Config, db *Db) error + func FormCreate(c *fiber.Ctx, cfg *cfg.Config, db *Db) error + func FormDelete(c *fiber.Ctx, cfg *cfg.Config, db *Db) error + func FormDescribe(c *fiber.Ctx, cfg *cfg.Config, db *Db) error + func FormPage(c *fiber.Ctx, cfg *cfg.Config, db *Db, shallexpire bool) error + func FormsList(c *fiber.Ctx, cfg *cfg.Config, db *Db) error + func IsExpired(conf *cfg.Config, start time.Time, duration string) bool + func JsonStatus(c *fiber.Ctx, code int, msg string) error + func Log(format string, values ...any) + func ProcessFormFiles(cfg *cfg.Config, members []string, id string) (string, string, error) + func Runserver(conf *cfg.Config, args []string) error + func SaveFormFiles(c *fiber.Ctx, cfg *cfg.Config, files []*multipart.FileHeader, id string) ([]string, error) + func SendResponse(c *fiber.Ctx, msg string, err error) error + func Sendmail(c *cfg.Config, recipient string, body string, subject string) error + func SessionGetApicontext(c *fiber.Ctx) (string, error) + func SessionGetFormId(c *fiber.Ctx) (string, error) + func SetupAuthStore(conf *cfg.Config, db *Db) func(*fiber.Ctx) error + func SetupServer(conf *cfg.Config) *fiber.App + func Ts() string + func UploadDelete(c *fiber.Ctx, cfg *cfg.Config, db *Db) error + func UploadDescribe(c *fiber.Ctx, cfg *cfg.Config, db *Db) error + func UploadFetch(c *fiber.Ctx, cfg *cfg.Config, db *Db, shallExpire ...bool) error + func UploadPost(c *fiber.Ctx, cfg *cfg.Config, db *Db) error + func UploadsList(c *fiber.Ctx, cfg *cfg.Config, db *Db) error + func ZipDir(directory, zipfilename string) error + type Db struct + func NewDb(c *cfg.Config) (*Db, error) + func (db *Db) Close() + func (db *Db) Delete(apicontext string, id string) error + func (db *Db) Get(apicontext string, id string, t int) (*common.Response, error) + func (db *Db) Insert(id string, entry common.Dbentry) error + func (db *Db) List(apicontext string, filter string, query string, t int) (*common.Response, error) + func (db *Db) Lookup(apicontext string, id string, t int) (*common.Response, error) + type Id struct + Id string + type Meta struct + Expire string + type SetContext struct + Apicontext string + Query string