router

package
v0.3.26 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Replace

func Replace(info *PageInfo)

func SetFlagsFromQuery added in v0.3.19

func SetFlagsFromQuery(q url.Values)

Types

type Flag

type Flag string
const (
	FlagAltColors           Flag = "altColors"
	FlagAudienceTest        Flag = "audienceTest"
	FlagAutoPlay            Flag = "autoPlay"
	FlagAutoRematch         Flag = "autoRematch"
	FlagBreakShitForTesting Flag = "breakShitForTesting"
	FlagCheapDebug          Flag = "cheapDebug"
	FlagCrashOnDroppedFrame Flag = "crashOnDroppedFrame"
	FlagDebugGameLog        Flag = "debugGameLog"
	FlagDebugRevealModified Flag = "debugRevealModified"
	FlagDisableExploits     Flag = "disableExploits"
	FlagDontForceGC         Flag = "dontForceGC"
	FlagForceFirefoxCompat  Flag = "forceFirefoxCompat"
	FlagForceLowGPU         Flag = "forceLowGPU"
	FlagForceMediumGPU      Flag = "forceMediumGPU"
	FlagForceSafariCompat   Flag = "forceSafariCompat"
	FlagForceSoftOpus       Flag = "forceSoftOpus"
	FlagForceSoftWebP       Flag = "forceSoftWebP"
	FlagGfxPerf             Flag = "gfxPerf"
	FlagInHandDebug         Flag = "inHandDebug"
	FlagMKAssist            Flag = "mkAssist"
	FlagMMORPG              Flag = "mmorpg"
	FlagMockRTC             Flag = "mockRTC"
	FlagNo3d                Flag = "no3d"
	FlagNoBatchCaching      Flag = "noBatchCaching"
	FlagNoExternalTextures  Flag = "noExternalTextures"
	FlagNoFancyBorders      Flag = "noFancyBorders"
	FlagNoTextures          Flag = "noTextures"
	FlagNoWindows           Flag = "noWindows"
	FlagPeelMyCards         Flag = "peelMyCards"
	FlagRTCStats            Flag = "rtcStats"
	FlagShowHitbox          Flag = "showHitbox"
	FlagSlow                Flag = "slow"
	FlagSpookyEnemyCards    Flag = "spookyEnemyCards"
	FlagSpriteFlex          Flag = "spriteFlex"
	FlagSuperSpeed          Flag = "superSpeed"
	FlagTP2Debug            Flag = "tp2Debug"
	FlagUseAI               Flag = "useAI"
)

Secret flag constants.

func (Flag) ForceSet

func (f Flag) ForceSet(on bool)

func (Flag) IsSet

func (f Flag) IsSet() bool

type Page

type Page int
const (
	PageNotFound Page = iota
	PageStatic
	PageServerDynamic
	PageAphidFestival
	PageELF
	PageBugTables
	PageArcadeMain
	PageArcadeGame
	PageArcadeHighScores
	PageArcadeRecording
	PageCardsHome
	PageCardsJoin
	PageCardsModes
	PageCardsDeck
	PageCardsDeckEditor
	PageCardsRecording
	PageCardsEditor
)

Constants for Page.

func (Page) String

func (i Page) String() string

type PageInfo

type PageInfo struct {
	Page      Page
	Raw       string
	Game      arcade.Game
	HSMode    arcade.HighScoresMode
	Code      string
	Seed      string
	Mode      string
	Custom    string
	Variant   uint64
	Revision  int
	PageNum   int
	AsNPC     string
	VersusNPC string
}

func (*PageInfo) MarshalText

func (p *PageInfo) MarshalText() ([]byte, error)

func (*PageInfo) ShouldRedirect

func (p *PageInfo) ShouldRedirect() bool

func (*PageInfo) UnmarshalText

func (p *PageInfo) UnmarshalText(b []byte) error

Jump to

Keyboard shortcuts

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