package
0.0.16
Repository: https://github.com/blackbx/service-framework.git
Documentation: pkg.go.dev

# Functions

NewFactory creates a new instance of the ResponderFactory.
NewHTTPProblem creates a new instance of a Problem for HTTP errors.
NewJSONResponder creates a new instance of the JSONResponder type for the given request.

# Variables

Service is the definition of the dependency.

# Structs

JSONResponder is a responder that will respond with JSON responses.
Problem is a struct that provides standard error details.
ResponderFactory is a factory that can create new Responders, it allows for a responder to be created in a handler and subsequently called.

# Interfaces

JSONEncoder is an interface that abstracts the encoding of JSON.
No description provided by the author
Responder is an interface that abstracts the production of the response away from handlers.
ResponderProvider is an interface that abstracts the providing of Responders.

# Type aliases

ResponderConstructor is a function that can create a new instance of a responder.