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.
Click to show internal directories.
Click to hide internal directories.