Categorygithub.com/packtpublishing/building-restful-web-services-with-goChapter09encryptServicehelpers
# Functions
DecodeDecryptRequest fills struct from JSON details of request.
DecodeEncryptRequest fills struct from JSON details of request.
EncodeResponse is common for both the reponses from encrypt and decrypt services.
MakeDecryptEndpoint forms endpoint for request/response of decrypt function.
MakeEncryptEndpoint forms endpoint for request/response of encrypt function.
# Structs
DecryptRequest strctures request coming from client.
DecryptResponse strctures response going to the client.
EncryptRequest strctures request coming from client.
EncryptResponse strctures response going to the client.
EncryptServiceInstance is the implementation of interface for micro service.
# Interfaces
EncryptService is a blueprint for our service.