handlers

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: BSD-3-Clause Imports: 21 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

func APICmd(config configuration.Config) http.Handler

func APILogin

func APILogin(config configuration.Config) http.Handler

func APIUsers

func APIUsers(config configuration.Config) http.Handler

func AccessControlAllow

func AccessControlAllow(next http.Handler) http.Handler

func CastWS

func CastWS(server data.Server, config configuration.Config) http.Handler

func Exec

func Exec() http.Handler

func IFrame added in v1.0.2

func IFrame(config configuration.Config) http.Handler

func Login

func Login(loginPage []byte) http.Handler

func NoLayout added in v1.0.2

func NoLayout(config configuration.Config) http.Handler

func WS

func WS(server data.Server, config configuration.Config) http.Handler

Types

type RequestPayload

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

type User

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