package
1.4.0
Repository: https://github.com/onsdigital/dp-image-api.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

ReadJSONBody reads the bytes from the provided body, and marshals it to the provided model interface.
Setup creates the API struct and its endpoints with corresponding handlers.
WriteJSONBody marshals the provided interface into json, and writes it to the response body.

# Variables

ImagePublishedEvent returns an ImagePublished event for the provided path.
ImageUploadedEvent returns an ImageUploaded event for the provided image ID and upload path.
NewID returns a new UUID.

# Structs

API provides a struct to wrap the api around.

# Interfaces

AuthHandler interface for adding auth to endpoints.
MongoServer defines the required methods from MongoDB.