Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) BuildTask(url, taskID string, body []byte, httpMethod taskspb.HttpMethod, ...) *taskspb.Task
- func (c *Client) Close()
- func (c *Client) DeleteTask(id string) error
- func (c *Client) GetProtoBufTimestamp(t time.Time) *timestamppb.Timestamp
- func (c *Client) GetTask(id string) (*taskspb.Task, error)
- func (c *Client) RegisterTask(task *taskspb.Task) (*taskspb.Task, error)
- func (c *Client) UpdateTask(oldID string, task *taskspb.Task) (*taskspb.Task, error)
Constants ¶
const Kind = "google"
Kind represents the name of the location/storage type.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for google cloud tasks
func (*Client) BuildTask ¶
func (c *Client) BuildTask(url, taskID string, body []byte, httpMethod taskspb.HttpMethod, scheduledAt time.Time) *taskspb.Task
BuildTask ...
func (*Client) DeleteTask ¶
DeleteTask ... 1. 멤버가 탈퇴 / 룸 나가기 하였을 경우!! 2. DoMemberPostedDiaryTask 되었을 때 기존의 post fin event 제거 후 새로운 turn을 만들어야 한다.
func (*Client) GetProtoBufTimestamp ¶
func (c *Client) GetProtoBufTimestamp(t time.Time) *timestamppb.Timestamp
GetProtoBufTimestamp ...
func (*Client) RegisterTask ¶
RegisterTask register a task and adds it to a queue. https://pkg.go.dev/cloud.google.com/go/cloudtasks/apiv2#CallOptions https://github.com/GoogleCloudPlatform/golang-samples/blob/c5b5b4be9bb51fc05a8939b163374bc23084eb56/tasks/create_http_task.go https://ichi.pro/ko/gcp-cloud-tasksleul-sayonghaneun-ibenteu-giban-yeyag-jag-eob-254067840428949 https://tkdguq05.github.io/2020/05/19/google-task/ https://github.com/ArticsIS/Google-Cloud-Helpers/blob/master/services/taskqueue.py https://cloud.google.com/tasks/docs/tutorial-gcf