util

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveFile

func RemoveFile(storage storage.StorageHandler, dbHndlr *db.DBHandler, file *iface.File) error

removes the file from the database by ID, then if no other files exist with the same hash in the database, the file is also removed from storage.

func RemoveToken

func RemoveToken(storage storage.StorageHandler, dbHndlr *db.DBHandler, token *iface.Token) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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