api

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteKey

func DeleteKey(id string) bool

DeleteKey deletes the selected API key

func IsValidApiKey

func IsValidApiKey(key string, modifyTime bool, requiredPermission uint8) bool

IsValidApiKey checks if the API key provides is valid. If modifyTime is true, it also automatically updates the lastUsed timestamp

func NewKey

func NewKey(defaultPermissions bool) string

NewKey generates a new API key

func Process

func Process(w http.ResponseWriter, r *http.Request, maxMemory int)

Process parses the request and executes the API call or returns an error message to the sender

Types

This section is empty.

Jump to

Keyboard shortcuts

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