Documentation
¶
Index ¶
- Constants
- func HomeHandler(ctx *fasthttp.RequestCtx)
- type Configuration
- type Handler
- func (h Handler) HandleAwsLambda(ctx context.Context, awsReq events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
- func (h Handler) HandleCanonical(hookData models.HookData) []models.ErrorInfo
- func (h Handler) HandleEawsyLambda(event *apigatewayproxyevt.Event, ctx *runtime.Context) (events.APIGatewayProxyResponse, error)
- func (h Handler) HandleFastHTTP(ctx *fasthttp.RequestCtx)
- func (h Handler) HandleNetHTTP(res http.ResponseWriter, req *http.Request)
- type HookRequestData
- type Normalize
Constants ¶
View Source
const ( QueryParamNamedOutputs = "adapters" QueryParamInputType = "inputType" QueryParamOutputType = "outputType" QueryParamToken = "token" QueryParamOutputURL = "url" )
View Source
const (
DisplayName = "base_handler"
)
Variables ¶
This section is empty.
Functions ¶
func HomeHandler ¶
func HomeHandler(ctx *fasthttp.RequestCtx)
HomeHandler is a fasthttp handler for handling the webhoo proxy homepage.
Types ¶
type Configuration ¶ added in v0.2.0
type Configuration struct { ConfigData config.Configuration AdapterSet adapters.AdapterSet }
type Handler ¶ added in v0.2.0
type Handler struct { Config config.Configuration AdapterSet adapters.AdapterSet Normalize Normalize MessageBodyType models.MessageBodyType }
func (Handler) HandleAwsLambda ¶ added in v0.2.2
func (h Handler) HandleAwsLambda(ctx context.Context, awsReq events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
HandleAwsLambda is the method to respond to a fasthttp request.
func (Handler) HandleCanonical ¶ added in v0.2.0
HandleCanonical is the method to handle a processed request.
func (Handler) HandleEawsyLambda ¶ added in v0.2.0
func (h Handler) HandleEawsyLambda(event *apigatewayproxyevt.Event, ctx *runtime.Context) (events.APIGatewayProxyResponse, error)
HandleEawsyLambda is the method to respond to a fasthttp request.
func (Handler) HandleFastHTTP ¶ added in v0.2.0
func (h Handler) HandleFastHTTP(ctx *fasthttp.RequestCtx)
HandleFastHTTP is the method to respond to a fasthttp request.
func (Handler) HandleNetHTTP ¶ added in v0.2.2
func (h Handler) HandleNetHTTP(res http.ResponseWriter, req *http.Request)
HandleNetHTTP is the method to respond to a fasthttp request.
type HookRequestData ¶ added in v0.2.0
type HookRequestData struct { InputType string InputBody []byte OutputType string OutputURL string NamedOutputs []string Token string }
func HookRequestDataFromEawsyLambdaEvent ¶ added in v0.2.0
func HookRequestDataFromEawsyLambdaEvent(event *apigatewayproxyevt.Event) HookRequestData
func HookRequestDataFromFastHTTPReqCtx ¶ added in v0.2.0
func HookRequestDataFromFastHTTPReqCtx(ctx *fasthttp.RequestCtx) HookRequestData
Click to show internal directories.
Click to hide internal directories.