Categorygithub.com/lbernardo/entrypoint
modulepackage
1.2.0
Repository: https://github.com/lbernardo/entrypoint.git
Documentation: pkg.go.dev

# README

Entrypoint

Install

go get github.com/lbernardo/entrypoint

Use

Convert Http Request to Generic Request

request := entrypoint.NewRequestByHttp(r)  // r is *http.Request and request is entrypoint.Request

Convert Http Response to Generic Response

response := entrypoint.NewResponseToHttp(w, http.StatusOK, responseGen) // response is entrypoint.Response 

Convert APIGateway Request to Generic Request

entrypoint.NewRequestByApiGateway(entrypoint.RequestAPIGateway)

Convert Generic Response to API Gateway response

entrypoint.NewResponseToApiGateway(status, response) // status is int and response is entrypoint.Response

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author