package
0.0.0-20220409122120-d0d75a4f065a
Repository: https://github.com/therockettek/resttunnel.git
Documentation: pkg.go.dev
# Functions
AliveHandler returns the RestTunnel version as a way of signifying it is ready to serve.
AnalyticsHandler handles returning the RestTunnel analytics.
CallbacksHandler handles returning a callback to a client.
DurationTimestamp outputs in a format similar to the timestamp String().
IsDiscordAPIURI returns a boolean if the current URI is a discord API endpoint.
NewMethodRouter creates a new method router.
NewTunnel creates a RestTunnel instance.
# Constants
ConfigurationPath is the path to the file the configration will be located at.
Interval between each analytic sample.
MaxRedirects is the maximum number of redirects before is it not attempted again.
Samples to hold.
VERSION respects semantic versioning.
# Variables
ErrCallbackDoesNotExist is raised when referencing a callback that does not exist.
ErrCallbackNotFinished is raised when attempting to retrieve the callback on a request that is not done.
# Structs
BaseResponse is the structure of all REST requests.
ErrorResponse is the structure error messages are returned to by the client.
MethodRouter beepboop.
Queue represents a Deque with a priority queue.
RestTunnel represents the global application state.
TunnelConfiguration represents the configuration for RestTunnel.