handlers

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Events

func Events(scrapeCache *cache.Cache) func(c *fiber.Ctx) error

func ForumPosts

func ForumPosts(scrapeCache *cache.Cache) func(c *fiber.Ctx) error

func GamesInSpotlight added in v0.3.0

func GamesInSpotlight(scrapeCache *cache.Cache) func(c *fiber.Ctx) error

func GetCommonHostname added in v0.9.0

func GetCommonHostname(hostnames []string, minLength int) string

func MasterDetails

func MasterDetails() func(c *fiber.Ctx) error

func News

func News(scrapeCache *cache.Cache) func(c *fiber.Ctx) error

func Qtv

func Qtv(getQtvServers func() []qtv.Qtv) func(c *fiber.Ctx) error

func Qwfwd

func Qwfwd(getQwdfwdServers func() []qwfwd.Qwfwd) func(c *fiber.Ctx) error

func ServerDetails

func ServerDetails(serverDetailsProvider func(address string) (qserver.GenericServer, error)) func(c *fiber.Ctx) error

func ServerGroupDetails added in v0.9.0

func ServerGroupDetails(serverProvider func(host string) []qserver.GenericServer) func(c *fiber.Ctx) error

func ServerGroupList added in v0.9.0

func ServerGroupList(getServers func() []qserver.GenericServer) func(c *fiber.Ctx) error

func ServerLastScores added in v0.2.0

func ServerLastScores() func(c *fiber.Ctx) error

func ServerLastStats added in v0.2.0

func ServerLastStats() func(c *fiber.Ctx) error

func Servers

func Servers(getServers func() []qserver.GenericServer) func(c *fiber.Ctx) error

func Streams

func Streams(getStreams func() []twitch.Stream, getMvdsvServers func() []mvdsv.Mvdsv) func(c *fiber.Ctx) error

func WikiRecentChanges added in v0.3.7

func WikiRecentChanges(scrapeCache *cache.Cache) func(c *fiber.Ctx) error

Types

type ServerGroup added in v0.9.0

type ServerGroup struct {
	Servers []qserver.GenericServer
}

func (ServerGroup) Geo added in v0.9.0

func (g ServerGroup) Geo() geo.Location

func (ServerGroup) HasServers added in v0.9.0

func (g ServerGroup) HasServers() bool

func (ServerGroup) Host added in v0.9.0

func (g ServerGroup) Host() string

func (ServerGroup) MarshalJSON added in v0.9.0

func (g ServerGroup) MarshalJSON() ([]byte, error)

func (ServerGroup) Name added in v0.9.0

func (g ServerGroup) Name() string

type ServerLastStatsParams added in v0.2.0

type ServerLastStatsParams struct {
	Address string `query:"address" validate:"hostname_port"`
	Limit   int    `query:"limit" validate:"omitempty,min=0,max=50"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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