Documentation
¶
Index ¶
- func AgeInSecMessage(msg *pubsub.Message) float64
- func CheckNbrItemsPubsub(projectID string, subscriptionId string) (int64, error)
- func PushElemToPubsub(ctx *context.Context, topic *pubsub.Topic, elem *PubSubElement) error
- func PushJsonStringToPubsub(ctx *context.Context, topic *pubsub.Topic, jsonString string) error
- func ReceiveEventsFromPubsub(devprod string, projectId string, subscriptionId string, minAgeSecs int, ...) (int, error)
- func SetupClientAndTopic(projectID string, topicId string) (*context.Context, *pubsub.Client, *pubsub.Topic, error)
- type PubSubElement
- type PubSubMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgeInSecMessage ¶
func CheckNbrItemsPubsub ¶
func PushElemToPubsub ¶
func PushJsonStringToPubsub ¶
func ReceiveEventsFromPubsub ¶
func ReceiveEventsFromPubsub( devprod string, projectId string, subscriptionId string, minAgeSecs int, nbrAckWorker int, maxPollPerRun int, pubsubForwardChan *chan *PubSubElement) (int, error)
ReceiveEventsFromPubsub is synchronous in it's nature. It will lock up main thread. Do not call until main pipeline is setup or it might deadlock if the buffered chan gets full.
Types ¶
type PubSubElement ¶
type PubSubMessage ¶
type PubSubMessage struct {
Data []byte `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.