package
0.0.0-20241230153215-30fbc8ec2936
Repository: https://github.com/glass-cms/glasscms.git
Documentation: pkg.go.dev
# Functions
DeserializeJSONRequestBody reads the JSON-encoded request body from an HTTP request and deserializes it into a value of type T.
ErrorMapperAlreadyExistsError maps a resource.AlreadyExistsError to an API error response.
ErrorMapperDeserializeError maps a resource.DeserializationError to an API error response.
ErrorMapperInvalidFieldMaskError maps a fieldmask.InvalidFieldMaskError to an API error response.
ErrorMapperNotFoundError maps a resource.NotFoundError to an API error response.
No description provided by the author
No description provided by the author
No description provided by the author
NewErrorHandler returns a new instance of ErrorHandler.
SerializeJSONResponse serializes the given data to JSON and writes it to the HTTP response.
WithPort is an option that sets the port the server listens on.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
DeserializeError is an error type that wraps an error that occurred during deserialization.
No description provided by the author
No description provided by the author
# Type aliases
ErrorMapper is a function that maps an error to an API error response.
No description provided by the author