push

package module
v0.0.0-...-0288511 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL