Documentation ¶
Overview ¶
* Arc - Copyleft of Simone 'evilsocket' Margaritelli. * evilsocket at protonmail dot com * https://www.evilsocket.net/ * * See LICENSE.
* Arc - Copyleft of Simone 'evilsocket' Margaritelli. * evilsocket at protonmail dot com * https://www.evilsocket.net/ * * See LICENSE.
* Arc - Copyleft of Simone 'evilsocket' Margaritelli. * evilsocket at protonmail dot com * https://www.evilsocket.net/ * * See LICENSE.
Index ¶
- Variables
- func AuthHandler() gin.HandlerFunc
- func GenerateToken(k []byte, userId string) (string, error)
- func Security(tlsFingerprint string) gin.HandlerFunc
- func Serve(url string, fs ServeFileSystem) gin.HandlerFunc
- func ServeStatic(url, root, index string) gin.HandlerFunc
- func Static(root, index string) *localFileSystem
- func ValidateToken(t string, k string) (*jwt.Token, error)
- type ServeFileSystem
Constants ¶
This section is empty.
Variables ¶
View Source
var IndexFile = ""
Functions ¶
func AuthHandler ¶
func AuthHandler() gin.HandlerFunc
func Security ¶
func Security(tlsFingerprint string) gin.HandlerFunc
func Serve ¶
func Serve(url string, fs ServeFileSystem) gin.HandlerFunc
Static returns a middleware handler that serves static files in the given directory.
func ServeStatic ¶
func ServeStatic(url, root, index string) gin.HandlerFunc
func ValidateToken ¶
Types ¶
type ServeFileSystem ¶
type ServeFileSystem interface { http.FileSystem Exists(prefix string, path string) bool }
Click to show internal directories.
Click to hide internal directories.