package
0.0.0-20240904073751-07d62d3164ce
Repository: https://github.com/fluidity-money/fluidity-app.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

AuthenticatedEndpoint listens using http.HandleFunc on a specific endpoint, with some overhead for logging and a pass to validate whether the connection should continue.
Endpoint adds some logging code to handle user requests.
GetIpAddress from a request with HeaderIpAddress.
JsonEndpoint adds some logging code and marshals the return value of the handler and sends to the client.
Listen gets the listen address from the environment variable and runs ListenAndServe.

# Constants

Context to use when logging.
EnvHttpListenAddress to use to listen on.
HeaderCorsAllowHeaders is also used to support permissive CORS.
HeaderCors is used to enable CORS without needing intermediating proxy code.
HeaderIpAddress to use to get the user's IP address.
StatusValidationFuncFailed is returned when the validation func returns a non-nil exit code!.

# Type aliases

HttpFunction to destink function definitions.