package
module
Version:
v0.0.0-...-20ea542
Opens a new window with list of versions in this module.
Published: Oct 11, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
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 struct {
Result bool `json:"result"`
Type string `json:"type"`
Data interface{} `json:"data"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.