handlers

package
v0.0.0-...-d047852 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONTEXT_USER_OBJECT_KEY key = 0
)
View Source
const (
	JWT_COOKIE_EXPIRATION = 24 * time.Hour
)

Variables

This section is empty.

Functions

func GetLoginChal

func GetLoginChal(w http.ResponseWriter, r *http.Request)

func Image

func Image(w http.ResponseWriter, r *http.Request)

func LoginCheckKey

func LoginCheckKey(w http.ResponseWriter, r *http.Request)

func LoginWhitChal

func LoginWhitChal(w http.ResponseWriter, r *http.Request)

func Register

func Register(w http.ResponseWriter, r *http.Request)

func Upload

func Upload(w http.ResponseWriter, r *http.Request)

func WalletMiddleware

func WalletMiddleware(next http.HandlerFunc) http.HandlerFunc

Types

type LoginKeyBody

type LoginKeyBody struct {
	WalletID string `json:"wallet"`
	Chal     string `json:"challange"`
}

type UserKeyBody

type UserKeyBody struct {
	WalletID string `json:"wallet"`
	Key      string `json:"key"`
}

Jump to

Keyboard shortcuts

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