gcp

package
v1.371.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFederatedToken

func GetFederatedToken(projectNumber, pool, provider, token string) (string, error)

func Publish

func Publish(projectNumber string, topic string, token string, key string, data []byte) error

Types

type Event

type Event struct {
	Messages []EventMessage `json:"messages"`
}

type EventMessage

type EventMessage struct {
	Data        []byte `json:"data"`
	OrderingKey string `json:"orderingKey"`
}

https://pkg.go.dev/cloud.google.com/go/pubsub#Message

Jump to

Keyboard shortcuts

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