share

package
v0.0.0-...-629b230 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteSharedFileByID

func DeleteSharedFileByID(sharedFileID uint64) error

func IsFilenameUsed

func IsFilenameUsed(filename string) (bool, error)

Types

type SharedFile

type SharedFile struct {
	basic.Model
	Filename string     `json:"filename"`
	Desc     string     `json:"desc"`
	UserID   *uint64    `json:"-"`
	User     *user.User `json:"user"`
}

func GetAllSharedFile

func GetAllSharedFile() ([]SharedFile, error)

func GetSharedFileByID

func GetSharedFileByID(sharedFileID uint64) (*SharedFile, error)

func SaveToDB

func SaveToDB(filename, desc string, userID uint64) (*SharedFile, error)

Jump to

Keyboard shortcuts

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