function

package module
v0.0.0-...-20ea542 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

README

deploy


gcloud functions deploy get-todo-list \
--gen2 \
--region=asia-east1 \
--runtime=go121 \
--source=./ \
--entry-point=GetTodoList \
--trigger-topic=get-todo-list

gcloud functions deploy add-todo-item \
--gen2 \
--region=asia-east1 \
--runtime=go121 \
--source=./ \
--entry-point=AddTodoItem \
--trigger-topic=add-todo-item

gcloud functions deploy remove-todo-item \
--gen2 \
--region=asia-east1 \
--runtime=go121 \
--source=./ \
--entry-point=RemoveTodoItem \
--trigger-topic=remove-todo-item

gcloud functions deploy update-todo-item \
--gen2 \
--region=asia-east1 \
--runtime=go121 \
--source=./ \
--entry-point=UpdateTodoItem \
--trigger-topic=update-todo-item

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessagePublishedData

type MessagePublishedData struct {
	Message PubSubMessage
}

MessagePublishedData contains the full Pub/Sub message See the documentation for more details: https://cloud.google.com/eventarc/docs/cloudevents#pubsub

type PubSubMessage

type PubSubMessage struct {
	Data []byte `json:"data"`
}

PubSubMessage is the payload of a Pub/Sub event. See the documentation for more details: https://cloud.google.com/pubsub/docs/reference/rest/v1/PubsubMessage

type Request

type Request struct {
	Name        string `json:"name"`
	ChannelId   string `json:"channelId"`
	UserId      string `json:"userId"`
	ID          string `json:"id"`
	Description string `json:"description"`
	Completed   *bool  `json:"completed"`
}

type Response

type Response struct {
	Result bool        `json:"result"`
	Type   string      `json:"type"`
	Data   interface{} `json:"data"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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