handler

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserStaleDuration time.Duration = 15 * time.Second

Functions

This section is empty.

Types

type Downloadhandler

type Downloadhandler struct{}

func NewDownloadHandler

func NewDownloadHandler(parent *Handler) (handler *Downloadhandler)

func (*Downloadhandler) GetDownload

func (handler *Downloadhandler) GetDownload(w http.ResponseWriter, req *http.Request)

type Gamehandler

type Gamehandler struct {
	// contains filtered or unexported fields
}

func NewGameHandler

func NewGameHandler(parent *Handler, games game.Games) (handler *Gamehandler)

func (*Gamehandler) GetGame

func (handler *Gamehandler) GetGame(w http.ResponseWriter, req *http.Request)

func (*Gamehandler) GetGameDownload

func (handler *Gamehandler) GetGameDownload(w http.ResponseWriter, req *http.Request)

func (*Gamehandler) GetGameDownloadIcon

func (handler *Gamehandler) GetGameDownloadIcon(w http.ResponseWriter, req *http.Request)

func (*Gamehandler) GetGames

func (handler *Gamehandler) GetGames(w http.ResponseWriter, req *http.Request)

type Handler

type Handler struct {
	Setting         *setting.Settings
	Gamehandler     *Gamehandler
	Userhandler     *Userhandler
	Downloadhandler *Downloadhandler
}

func NewHandler

func NewHandler(settings *setting.Settings) *Handler

func (*Handler) WithDownloadHandler

func (handler *Handler) WithDownloadHandler() *Handler

func (*Handler) WithGamehandler

func (handler *Handler) WithGamehandler() *Handler

func (*Handler) WithUserhandler

func (handler *Handler) WithUserhandler(ctx context.Context, errgrp *errgroup.Group) *Handler

type Userhandler

type Userhandler struct {
	// contains filtered or unexported fields
}

func NewUserHandler

func NewUserHandler(ctx context.Context, errgrp *errgroup.Group, parent *Handler) (handler *Userhandler)

func (*Userhandler) GetUser

func (handler *Userhandler) GetUser(w http.ResponseWriter, req *http.Request)

func (*Userhandler) GetUsers

func (handler *Userhandler) GetUsers(w http.ResponseWriter, req *http.Request)

func (*Userhandler) PostUser

func (handler *Userhandler) PostUser(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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