schema

package
v0.0.0-...-01572aa Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Comma = []byte(",")
)

Functions

func Decode

func Decode(byt []byte) [][]byte

func Encode

func Encode(act Action, mes ...[]byte) []byte

func Int64

func Int64(byt []byte) (int64, error)

Types

type Action

type Action byte
const (
	Ping Action = 1
	Pong Action = 2
	Auth Action = 3
	Join Action = 4
	Move Action = 5
	Race Action = 6
	Kill Action = 7
	Food Action = 8
)
type Header string
const (
	// DualHandshake defines the verification challenge that must be overcome, for
	// every stream engine client wanting to participate in the realtime services
	// provided. In case the dual-handshake was successfully executed, onchain and
	// offchain resources may be allocated for the authenticated user.
	DualHandshake Header = "dual-handshake"
	// UserChallenge defines the verification method enabled after a successful
	// dual-handshake was executed and a valid session token was exchanged for the
	// authenticated user.
	UserChallenge Header = "user-challenge"
)

Jump to

Keyboard shortcuts

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