site

package
v1.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package handlers define HTTP handlers.

Index

Constants

View Source
const VERSION = "v1.0.0-beta.3"

Variables

View Source
var (
	MaxPlayers = 20
)

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseDirectory string
	Name          string
	WarnAge       time.Duration
	Updater       *updater.Updater
	Party         *triage.Party
}

Config is how external users interact with this package.

type Handlers

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

Handlers is a mix of config and client interfaces to connect with.

func New

func New(c *Config) *Handlers

func (*Handlers) Collection

func (h *Handlers) Collection() http.HandlerFunc

Board shows a stratgy board

func (*Handlers) Root

func (h *Handlers) Root() http.HandlerFunc

Root redirects to leaderboard.

type Page

type Page struct {
	Version     string
	SiteName    string
	ID          string
	Title       string
	Description string
	Warning     string
	Total       int
	TotalShown  int
	Types       string
	UniqueItems []*hubbub.Conversation
	ResultAge   time.Duration

	Player        int
	Players       int
	PlayerChoices []string
	PlayerNums    []int
	Mode          int
	Index         int
	EmbedURL      string

	AverageResponseLatency time.Duration
	TotalPullRequests      int
	TotalIssues            int

	Collection  triage.Collection
	Collections []triage.Collection

	CollectionResult *triage.CollectionResult
	Stats            *triage.CollectionResult
	StatsID          string

	GetVars string
}

Page are values that are passed into the renderer

Jump to

Keyboard shortcuts

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