Documentation ¶
Index ¶
Constants ¶
View Source
const (
CorsPrefix = "REST_TRIGGER"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Factory ¶
type Factory struct { }
type HandlerSettings ¶
type Output ¶
type Output struct { PathParams map[string]string `md:"pathParams"` // The path parameters (e.g., 'id' in http://.../pet/:id/name ) QueryParams map[string]string `md:"queryParams"` // The query parameters (e.g., 'id' in http://.../pet?id=someValue ) Headers map[string]string `md:"headers"` // The HTTP header parameters Content interface{} `md:"content"` // The content of the request }
type PreflightHandler ¶
type PreflightHandler struct {
// contains filtered or unexported fields
}
type Reply ¶
type Reply struct { Code int `md:"code"` // The http code to reply with Data interface{} `md:"data"` // The data to reply with }
type Trigger ¶
type Trigger struct {
// contains filtered or unexported fields
}
Trigger REST trigger struct
func (*Trigger) Initialize ¶
func (t *Trigger) Initialize(ctx trigger.InitContext) error
Click to show internal directories.
Click to hide internal directories.