Documentation
¶
Index ¶
- type Configuration
- type Event
- func (e *Event) GetBody() []byte
- func (e *Event) GetContentType() string
- func (e *Event) GetFieldByteSlice(key string) []byte
- func (e *Event) GetFieldInt(key string) (int, error)
- func (e *Event) GetFieldString(key string) string
- func (e *Event) GetFields() map[string]interface{}
- func (e *Event) GetHeader(key string) interface{}
- func (e *Event) GetHeaderByteSlice(key string) []byte
- func (e *Event) GetHeaderString(key string) string
- func (e *Event) GetHeaders() map[string]interface{}
- func (e *Event) GetMethod() string
- func (e *Event) GetPath() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
trigger.Configuration
ReadBufferSize int
}
func NewConfiguration ¶
func NewConfiguration(ID string, triggerConfiguration *functionconfig.Trigger, runtimeConfiguration *runtime.Configuration) (*Configuration, error)
type Event ¶
type Event struct {
nuclio.AbstractEvent
// contains filtered or unexported fields
}
allows accessing fasthttp.RequestCtx as a event.Sync
func (*Event) GetContentType ¶
GetContentType returns the content type of the body
func (*Event) GetFieldByteSlice ¶
GetFieldByteSlice returns the field by name as a byte slice
func (*Event) GetFieldInt ¶
GetFieldInt returns the field by name as an integer
func (*Event) GetFieldString ¶
GetFieldString returns the field by name as a string
func (*Event) GetHeaderByteSlice ¶
GetHeaderByteSlice returns the header by name as a byte slice
func (*Event) GetHeaderString ¶
GetHeaderString returns the header by name as a string
func (*Event) GetHeaders ¶
GetHeaders loads all headers into a map of string / interface{}
Click to show internal directories.
Click to hide internal directories.