handles

package
v0.0.0-...-7187a67 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Count = 0
View Source
var CountStatus = 0
View Source
var PUBSUBTOKEN = os.Getenv("PUBSUBTOKEN")

Functions

func BaseRoot

func BaseRoot(w http.ResponseWriter, r *http.Request)

func Status

func Status(w http.ResponseWriter, r *http.Request)

func Subscript

func Subscript(w http.ResponseWriter, r *http.Request)

Subscript gets called from PubSub. The PUBSUBTOKEN must match.

Types

type PubSubMessage

type PubSubMessage struct {
	Message struct {
		Data []byte `json:"data,omitempty"`
		ID   string `json:"id"`
	} `json:"message"`
	Subscription string `json:"subscription"`
}

Jump to

Keyboard shortcuts

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