api

package
v0.0.0-...-8c4cb7d Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Sys   SystemAPI
	Lobby LobbyAPI
}

func NewRouter

func NewRouter(ctx context.Context, hertz *server.Hertz, env *types.Env) (*API, error)

NewRouter registers http router handlers

type LobbyAPI

type LobbyAPI struct {
	LobbyHandler handler.LobbyHandler
}

func (*LobbyAPI) Details

func (l *LobbyAPI) Details(c context.Context, ctx *app.RequestContext)

Details [GET] /lobby/details?rowId=KU_X19asjdla&region=ap-east-1 returns details info for specific lobby server

func (*LobbyAPI) List

func (l *LobbyAPI) List(c context.Context, ctx *app.RequestContext)

List [GET] /lobby/list? returns a list of lobby servers

func (*LobbyAPI) Statistic

func (l *LobbyAPI) Statistic(c context.Context, ctx *app.RequestContext)

Statistic [GET] /lobby/stat?before=xx&until=xx returns statistics information for dst lobby

type ModAPI

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

func (ModAPI) Search

func (mod ModAPI) Search(c context.Context, ctx *app.RequestContext)

Search returns a list of dst workshop files

type SystemAPI

type SystemAPI struct {
}

func (*SystemAPI) Ts

func (s *SystemAPI) Ts(ctx context.Context, c *app.RequestContext)

Ts [GET] /ts returns the timestamp of now

Jump to

Keyboard shortcuts

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