Documentation ¶
Index ¶
- func APIGatewayErrorHandler(err error) *events.APIGatewayProxyResponse
- func BuildHttpRequest(api base.ScoutrBase, r *http.Request, params httprouter.Params) types.Request
- func GetUserFromOIDC(req *http.Request, api base.ScoutrBase) types.RequestUser
- func HTTPErrorHandler(err error, w http.ResponseWriter) bool
- func InitAPIGateway(event events.APIGatewayProxyRequest, config config.Config) (dynamo.DynamoAPI, types.Request)
- func InitHTTPServer(api base.ScoutrBase, primaryListEndpoint string) (*httprouter.Router, error)
- func ProcessAPIGatewayResponse(data interface{}) (events.APIGatewayProxyResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIGatewayErrorHandler ¶
func APIGatewayErrorHandler(err error) *events.APIGatewayProxyResponse
APIGatewayErrorHandler : Handle api gateway errors
func BuildHttpRequest ¶
func BuildHttpRequest(api base.ScoutrBase, r *http.Request, params httprouter.Params) types.Request
func GetUserFromOIDC ¶
func GetUserFromOIDC(req *http.Request, api base.ScoutrBase) types.RequestUser
GetUserFromOIDC : Get user information from OIDC headers
func HTTPErrorHandler ¶
func HTTPErrorHandler(err error, w http.ResponseWriter) bool
HTTPErrorHandler : Handle HTTP errors
func InitAPIGateway ¶
func InitAPIGateway(event events.APIGatewayProxyRequest, config config.Config) (dynamo.DynamoAPI, types.Request)
InitAPIGateway : Initialize API Gateway
func InitHTTPServer ¶
func InitHTTPServer(api base.ScoutrBase, primaryListEndpoint string) (*httprouter.Router, error)
InitHTTPServer : Initialize the HTTP server
func ProcessAPIGatewayResponse ¶
func ProcessAPIGatewayResponse(data interface{}) (events.APIGatewayProxyResponse, error)
ProcessAPIGatewayResponse : Process response for api gateway
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.