routes

package
v0.0.0-...-bf66d8f Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncryptionClientEncodingMiddleware

func EncryptionClientEncodingMiddleware(client *pipeshandler.Client, instance *pipeshandler.Instance, message []byte) ([]byte, error)

Middleware for pipes-fiber to add encryption support (in encoding)

func EncryptionDecodingMiddleware

func EncryptionDecodingMiddleware(client *pipeshandler.Client, instance *pipeshandler.Instance, bytes []byte) (pipeshandler.Message, error)

Middleware for pipes-fiber to add encryption support

func SetupRoutes

func SetupRoutes(router fiber.Router)

Types

type ExtraClientData

type ExtraClientData struct {
	Key []byte // AES encryption key
}

Extra client data attached to the pipes-fiber client

type LeaveRoomRequest

type LeaveRoomRequest struct {
	Connection string `json:"conn"`
}

Jump to

Keyboard shortcuts

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