Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PushHandler ¶
func PushHandler(ctx context.Context, message PubsubMessage) error
PushHandler represents entry point for processing Pub/Sub push trigger. The function creates storage configuration and calls helper function which stores the message. Returned result is an error which defines the validity of the function action.
Types ¶
type PubsubMessage ¶
type PubsubMessage struct {
Data []byte `json:"data"`
}
PubsubMessage is a helper structure used for fetching incoming messages data
Click to show internal directories.
Click to hide internal directories.