Documentation
¶
Index ¶
- Variables
- func AddUser(c echo.Context) error
- func CheckURL(c echo.Context) error
- func DeletePaste(c echo.Context) error
- func EditUserProfile(c echo.Context) error
- func GetPaste(c echo.Context) error
- func GetUser(c echo.Context) error
- func NewPaste(c echo.Context) error
- func PasteAccess(c echo.Context) error
- func PasteList(c echo.Context) error
- func QueryPaste(c echo.Context) error
- func UpdatePaste(c echo.Context) error
- func UserLogin(c echo.Context) error
- func UserLogout(c echo.Context) error
- func UserMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- func UserPasteList(c echo.Context) error
- func UserWebAuthnDelete(c echo.Context) error
- func UserWebAuthnDiscoverableLogin(c echo.Context) error
- func UserWebAuthnDiscoverableLoginRequest(c echo.Context) error
- func UserWebAuthnList(c echo.Context) error
- func UserWebAuthnLogin(c echo.Context) error
- func UserWebAuthnLoginRequest(c echo.Context) error
- func UserWebAuthnRegister(c echo.Context) error
- func UserWebAuthnRegisterRequest(c echo.Context) error
- type PasteInfo
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var Config *database.Pastebin_Config = database.Config
View Source
var DefaultAttachmentExtensions = [...]string{"7z", "bz2", "gz", "rar", "tar", "xz", "zip", "iso", "img", "docx", "doc", "ppt", "pptx", "xls", "xlsx", "exe", "msixbundle", "apk"}
View Source
var HTML_MIME = [...]string{"text/html", "application/xhtml+xml"}
Functions ¶
func UserMiddleware ¶
func UserMiddleware(next echo.HandlerFunc) echo.HandlerFunc
func UserWebAuthnDiscoverableLoginRequest ¶
Types ¶
type PasteInfo ¶
type PasteInfo struct {
UUID string `json:"uuid"`
UID int64 `json:"uid"`
Hash string `json:"hash"`
Digest string `json:"digest"`
ExpireAfter string `json:"expire_after"`
AccessCount int64 `json:"access_count"`
MaxAccessCount int64 `json:"max_access_count"`
DeleteIfNotAvailable bool `json:"delete_if_not_available"`
CreatedAt string `json:"created_at"`
Short_url string `json:"short_url"`
MimeType string `json:"mime_type"`
FileName string `json:"filename"`
Size uint64 `json:"size"`
HasPassword bool `json:"has_password"`
HoldCount int64 `json:"hold_count"`
HoleBefore string `json:"hold_before"`
URL string `json:"url"`
}
Source Files
¶
- log.go
- paste.go
- session.go
- user.go
Click to show internal directories.
Click to hide internal directories.