cs2gsi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const IsoTimestampFileUsable = "2006-01-02T15-04-05"

Variables

This section is empty.

Functions

func ExtractGSIEventFromRequest

func ExtractGSIEventFromRequest(r *http.Request, loggers ExtraLoggers) (*structs.GSIEvent, error)

func FindEvents

func FindEvents(gsiEvent *structs.GSIEvent) []events.GameEventDetails

func HandlePOSTRequest

func HandlePOSTRequest(w http.ResponseWriter, r *http.Request, loggers ExtraLoggers)

func HandleWS

func HandleWS(_ http.ResponseWriter, request *http.Request, conn *websocket.Conn)

func RegisterEventHandler

func RegisterEventHandler(event events.GameEvent, handler gameEventHandlerCallback)

func RegisterGlobalHandler

func RegisterGlobalHandler(handler gameEventHandlerCallback)

func RegisterNonEventHandler

func RegisterNonEventHandler(handler func(event *structs.GSIEvent))

func StartupAndServe

func StartupAndServe(addr string) error

Types

type ExtraLoggers

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

type GameEventChecker

type GameEventChecker func(gsiEvent *structs.GSIEvent) *events.GameEventDetails

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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