backend

package
v0.0.0-...-6187186 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDatabase

func CreateDatabase()

func CreateShare

func CreateShare(id string, expirationGiven string, maxopenGiven int)

func CreateShareFile

func CreateShareFile(id string, shareId string, path string, expiration string, maxopen int)

func CreateShareSecret

func CreateShareSecret(id string, shareId string, text string, expiration string, maxopen int)

func DeleteShare

func DeleteShare(shareId string)

Delete a share and also its related secrets and files (and delete file from filesystem aswell)

func GetShareContent

func GetShareContent(shareId string) map[string]string

Get the content of a share

func GetShareKeyPrivate

func GetShareKeyPrivate(shareId string) string

Get the PGP private key of a share

func GetShareKeyPublic

func GetShareKeyPublic(shareId string) string

Get the PGP public key of a share

func GetShareOpen

func GetShareOpen(shareId string) map[string]string

Get the number of times a share has been opened

func GetSharePassword

func GetSharePassword(shareId string) string

Get the password of a share

func ListShareOpen

func ListShareOpen()

Get list of shares

func PeriodicCleanExpiredShares

func PeriodicCleanExpiredShares()

Regularly check for all shares expiration date, and delete them if expired

func UpdateShareOpen

func UpdateShareOpen(shareId string)

Update the number of times a share has been opened

Types

This section is empty.

Jump to

Keyboard shortcuts

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