api

package
v0.0.0-...-acffd06 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanServers

func CleanServers() error

func DeleteServer

func DeleteServer(id PeerID, game string) error

func GetEncodedKV

func GetEncodedKV[dataT any](key string, namespace string, data *dataT) (err error)

func GetServer

func GetServer(id PeerID, game string) (Server, error)

func GetServers

func GetServers(game string) ([]Server, error)

func MustGetDB

func MustGetDB() *sql.DB

func MustGetJwtKey

func MustGetJwtKey(id string) []byte

func PutEncodedKV

func PutEncodedKV[dataT any](key string, namespace string, data dataT, opts *kv.PutOptions) error

func PutServer

func PutServer(server Server) error

func RegisterHandlers

func RegisterHandlers(mux *http.ServeMux)

func ServerDelete

func ServerDelete(req ServerDeleteRequest, s Session) (ServerDeleteResponse, error)

func ServerHeartbeat

func ServerHeartbeat(req ServerHeartbeatRequest, s Session) (ServerHeartbeatResponse, error)

func ServerJoin

func ServerJoin(req ServerJoinRequest, s Session) (ServerJoinResponse, error)

func ServerList

func ServerList(req ServerListRequest, s Session) (ServerListResponse, error)

func SessionNew

func SessionNew(req SessionNewRequest, _ Session) (SessionNewResponse, error)

func SessionVerify

func SessionVerify(req SessionVerifyRequest, _ Session) (SessionVerifyResponse, error)

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