Documentation ¶
Index ¶
- func EncryptionClientEncodingMiddleware(client *pipeshandler.Client, instance *pipeshandler.Instance, message []byte) ([]byte, error)
- func EncryptionDecodingMiddleware(client *pipeshandler.Client, instance *pipeshandler.Instance, bytes []byte) (pipeshandler.Message, error)
- func SetupRoutes(router fiber.Router)
- type ExtraClientData
- type LeaveRoomRequest
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"`
}
Click to show internal directories.
Click to hide internal directories.