package
0.1.5
Repository: https://github.com/dynom/tysug.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewHTTP constructs a new TySugServer.
NewServiceRegistry creates a new registry.
WithCORS adds the CORS handler to the request handling.
WithDefaultHeaders sets the default headers to be used when writing a response.
WithGzipHandler adds a gzip handler to the server's handlers.
WithInputLimitValidator specifies a max input-value limit validator.
WithLogger sets the logger to be used when encountering http-related errors.
WithPProf enables pprof.

# Constants

Context value parameters.
Header constants.

# Variables

# Structs

ServiceRegistry holds (opinionated) service objects for handling specific requests.
TySugServer the HTTP server.

# Interfaces

Service is the type any service must implement.

# Type aliases

Option is a handy type used for configuration purposes.
Validator is a type to validate a client request, returning a nil error means all went well.