Documentation ¶
Overview ¶
Package logs provides structs for working with AWS CloudWatch Logs records.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleFunc ¶
func HandleFunc(h HandlerFunc)
HandleFunc handles Logs events with callback function.
Types ¶
type Event ¶
type Event struct { Owner string `json:"owner"` LogGroup string `json:"logGroup"` LogStream string `json:"logStream"` SubscriptionFilters []string `json:"subscriptionFilters"` MessageType string `json:"messageType"` LogEvents []*LogEvent `json:"logEvents"` }
Event represents a single log record.
type HandlerFunc ¶
HandlerFunc unmarshals Logs events before passing control.
func (HandlerFunc) Handle ¶
func (h HandlerFunc) Handle(data json.RawMessage, ctx *apex.Context) (interface{}, error)
Handle implements apex.Handler.
Click to show internal directories.
Click to hide internal directories.