session

package
v0.0.1-0...-d82520f Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenNameDE

func GenNameDE() string

func GenNameEN

func GenNameEN() string

func GuestAvatar

func GuestAvatar() string

Types

type Discord

type Discord struct {
	OAuth    *oauth2.Config
	Sessions storage.Sessions
	// Players  storage.Players
	KV map[string]time.Time
}

func (*Discord) Auth

func (d *Discord) Auth(w http.ResponseWriter, r *http.Request)

func (*Discord) Callback

func (d *Discord) Callback(w http.ResponseWriter, r *http.Request)

func (*Discord) Logout

func (d *Discord) Logout(w http.ResponseWriter, r *http.Request)

type GuestLogin

type GuestLogin struct {
	Sessions storage.Sessions
}

func (*GuestLogin) Register

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

Jump to

Keyboard shortcuts

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