package
0.0.0-20241031204715-02cd31d60970
Repository: https://github.com/teknogeek/ssrf-sheriff.git
Documentation: pkg.go.dev
# Functions
NewConfigProvider returns a config.Provider for YAML configuration.
NewHTTPServer provides a new HTTP server listener.
NewLogger returns a new *zap.Logger.
NewServerRouter returns a new mux.Router for handling any HTTP request to /.*.
NewSSRFSheriffRouter returns a new SSRFSheriffRouter which is used to route and handle all HTTP requests.
StartFilesGenerator starts the function which is dynamically generating JPG/PNG formats with the secret token rendered in the media.
StartServer starts the HTTP server.
# Structs
SerializableResponse is a generic type which both can be safely serialized to both XML and JSON.
SSRFSheriffRouter is a wrapper around mux.Router to handle HTTP requests to the sheriff, with logging.