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