cs2gsi

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 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 RegisterEventHandler

func RegisterEventHandler(event events.GameEvent, handler gameEventHandlerCallback)

RegisterEventHandler is the main way to register a handler callback for when an events.GameEvent is raised

func RegisterGlobalHandler

func RegisterGlobalHandler(handler gameEventHandlerCallback)

RegisterGlobalHandler is a function that will call handler anytime a RECOGNISED event is raised

func RegisterNonEventHandler

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

RegisterNonEventHandler calls the handler callback provided if a game event happens that the library does not currently support Useful for using the package as a base should you wish to extend it, or for debugging

func StartupAndServe

func StartupAndServe(addr string) error

StartupAndServe is the main entrypoint for the application. addr is the address and port you wish to serve the application on. Pass it in the same way you would to http.ListenAndServe()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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