handlers

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const WebSocketTimeout = 2 * time.Second // Set timeout duration

Variables

View Source
var User = sessions.NewCookieStore([]byte("your-secret-key"))

TODO NEED TO MAKE THIS SECRET KEY DYNAMICALLY FOR EACH SESSION

Functions

func FetchUserMetadata

func FetchUserMetadata(publicKey string, relays []string) (*types.UserMetadata, error)

func LoginHandler

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

func LogoutHandler

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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