tasks

package
v0.0.0-...-29f350e Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
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 GetClient

func GetClient() *Client

GetClient ...

func (*Client) BuildTask

func (c *Client) BuildTask(url, taskID string, body []byte, httpMethod taskspb.HttpMethod, scheduledAt time.Time) *taskspb.Task

BuildTask ...

func (*Client) Close

func (c *Client) Close()

Close ...

func (*Client) DeleteTask

func (c *Client) DeleteTask(id string) error

DeleteTask ... 1. 멤버가 탈퇴 / 룸 나가기 하였을 경우!! 2. DoMemberPostedDiaryTask 되었을 때 기존의 post fin event 제거 후 새로운 turn을 만들어야 한다.

func (*Client) GetProtoBufTimestamp

func (c *Client) GetProtoBufTimestamp(t time.Time) *timestamppb.Timestamp

GetProtoBufTimestamp ...

func (*Client) GetTask

func (c *Client) GetTask(id string) (*taskspb.Task, error)

GetTask ...

func (*Client) UpdateTask

func (c *Client) UpdateTask(oldID string, task *taskspb.Task) (*taskspb.Task, error)

UpdateTask ... Tasks cannot be updated after creation; there is no UpdateTask command. So you have to Delete old task and Create New Task

Jump to

Keyboard shortcuts

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