Documentation
¶
Index ¶
- type Configuration
- type Event
- func (e *Event) GetBody() []byte
- func (e *Event) GetBodyString() string
- func (e *Event) GetContentType() string
- func (e *Event) GetField(key string) (interface{}, error)
- func (e *Event) GetFieldString(key string) (string, error)
- func (e *Event) GetFields() map[string]interface{}
- func (e *Event) GetHeaders() map[string]interface{}
- func (e *Event) GetID() string
- func (e *Event) GetMethod() string
- func (e *Event) GetPath() string
- func (e *Event) GetShardID() int
- func (e *Event) GetTimestamp() time.Time
- func (e *Event) GetTriggerInfo() map[string]interface{}
- func (e *Event) GetType() string
- func (e *Event) GetTypeVersion() string
- func (e *Event) GetURL() string
- func (e *Event) GetVersion() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
trigger.Configuration
Event cron.Event
}
func NewConfiguration ¶
func NewConfiguration(id string, triggerConfiguration *functionconfig.Trigger, runtimeConfiguration *runtime.Configuration) (*Configuration, error)
type Event ¶
type Event struct {
Body []byte
Attributes map[string]interface{}
// contains filtered or unexported fields
}
Event contains the data for a job event
func (*Event) GetBodyString ¶
GetBodyString returns the body of the job event as a string
func (*Event) GetContentType ¶
GetContentType returns an empty string since job events don't have a content type
func (*Event) GetFieldString ¶
GetFieldString returns a specific event attribute as a string
func (*Event) GetHeaders ¶
GetHeaders returns nil since job events don't have headers
func (*Event) GetShardID ¶
GetShardID returns 0 since job events don't have a shard ID
func (*Event) GetTimestamp ¶
GetTimestamp returns the event timestamp
func (*Event) GetTriggerInfo ¶
GetTriggerInfo returns a map with trigger information
func (*Event) GetTypeVersion ¶
GetTypeVersion returns an empty string since job events don't have a type version
func (*Event) GetVersion ¶
GetVersion returns 0 since job events don't have a version
Click to show internal directories.
Click to hide internal directories.