Documentation ¶
Index ¶
- func CreateUser(w http.ResponseWriter, r *http.Request)
- func CredentialsFromMap(m map[string]interface{}, u string, p string) (string, string)
- func DeleteUser(w http.ResponseWriter, r *http.Request)
- func ExtractValue(w http.ResponseWriter, r *http.Request) string
- func GetUser(w http.ResponseWriter, r *http.Request)
- func HandleError(err error, w http.ResponseWriter) bool
- func Login(w http.ResponseWriter, r *http.Request)
- func SetupEndpoints()
- func TestFunc(w http.ResponseWriter, r *http.Request)
- func UpdateUser(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUser(w http.ResponseWriter, r *http.Request)
We check for the recaptcha response and proceed Covert the response body into appropriate models Create a new user using our dynamodb adapter A event message it sent to the queues which are consumed by the relevant services
func CredentialsFromMap ¶
Get the string value of a key
func ExtractValue ¶
func ExtractValue(w http.ResponseWriter, r *http.Request) string
to avoid duplication, this method is re-used Gets the unique identifier from the response body This unique identifier is set under the API configs For this context, it would be mail TODO: move to dynamodb library?
func SetupEndpoints ¶
func SetupEndpoints()
func UpdateUser ¶
func UpdateUser(w http.ResponseWriter, r *http.Request)
Creating a new user with same ID replaces the record Temporary solution
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.