handlers

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: ISC Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentSlide = int64(-10)

Functions

func API

func API() http.Handler

func APICmd added in v0.9.3

func APICmd(adminPwd string) http.Handler

func APILogin

func APILogin(userPwd, adminPwd string) http.Handler

func APIUsers added in v0.9.3

func APIUsers(adminPwd string) http.Handler

func AccessControlAllow

func AccessControlAllow(next http.Handler) http.Handler

func CastWS

func CastWS(server data.Server, adminPwd string) http.Handler

func Exec

func Exec() http.Handler

func Homepage

func Homepage(config configuration.Config) http.Handler

func Login

func Login(loginPage []byte) http.Handler

func WS

func WS(server data.Server, adminPwd string) http.Handler

Types

type RequestPayload

type RequestPayload struct {
	Slide int      `json:"slide"`
	Code  []string `json:"code"`
	Block *int     `json:"block"`
}

type User added in v0.9.3

type User struct {
	Username  string              `json:"username"`
	IP        string              `json:"ip"`
	UA        useragent.UserAgent `json:"ua"`
	LoginTime time.Time           `json:"login_time"`
}

Jump to

Keyboard shortcuts

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