server

package
v0.0.0-...-c84f994 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App stores global state for routing

func Initialise

func Initialise(config types.Config) (app *App, err error)

Initialise sets up a database connection, binds all the routes and prepares for Start

func (*App) LegacyListQuery

func (app *App) LegacyListQuery()

LegacyListQuery periodically hits the lists.sa-mp.com endpoint to update the new servers list.

func (*App) Start

func (app *App) Start() error

Start begins listening for requests and blocks until fatal error

Directories

Path Synopsis
Package v2 implements version 2 of the public API
Package v2 implements version 2 of the public API

Jump to

Keyboard shortcuts

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