Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(log *slog.Logger, sender sender) http.HandlerFunc
New returns a new http.HandlerFunc that sends a message using the provided sender. It validates the request, converts it to a message, and sends it using the sender. If any error occurs during the process, it returns an error response. It requires an Authorization token in the request header.
Types ¶
Click to show internal directories.
Click to hide internal directories.