Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MachineProtected ¶
MachineProtected middleware checks if the machine key is valid. It reads the header x-machine-key and compares it with the value from the .env file. If the machine key is not valid, it returns an error response. Otherwise, it calls the next handler.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.