tasks

package
v0.12.1-beta4 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const AUTH_ENDPOINT = "https://open.feishu.cn"
View Source
const ENDPOINT = "https://open.feishu.cn/open-apis/vc/v1"
View Source
const RAW_MEETING_TOP_USER_ITEM_TABLE = "feishu_meeting_top_user_item"

Variables

View Source
var CollectMeetingTopUserItemMeta = core.SubTaskMeta{
	Name:             "collectMeetingTopUserItem",
	EntryPoint:       CollectMeetingTopUserItem,
	EnabledByDefault: true,
	Description:      "Collect top user meeting data from Feishu api",
}
View Source
var ExtractMeetingTopUserItemMeta = core.SubTaskMeta{
	Name:             "extractMeetingTopUserItem",
	EntryPoint:       ExtractMeetingTopUserItem,
	EnabledByDefault: true,
	Description:      "Extract raw top user meeting data into tool layer table feishu_meeting_top_user_item",
}

Functions

func CollectMeetingTopUserItem

func CollectMeetingTopUserItem(taskCtx core.SubTaskContext) error

func ExtractMeetingTopUserItem

func ExtractMeetingTopUserItem(taskCtx core.SubTaskContext) error

func NewFeishuApiClient

func NewFeishuApiClient(taskCtx core.TaskContext, connection *models.FeishuConnection) (*helper.ApiAsyncClient, error)

Types

type FeishuApiParams

type FeishuApiParams struct {
	ConnectionId uint64 `json:"connectionId"`
}

type FeishuOptions

type FeishuOptions struct {
	ConnectionId       uint64  `json:"connectionId"`
	NumOfDaysToCollect float64 `json:"numOfDaysToCollect"`
}

type FeishuTaskData

type FeishuTaskData struct {
	Options                  *FeishuOptions
	ApiClient                *helper.ApiAsyncClient
	FeishuMeetingTopUserItem *models.FeishuMeetingTopUserItem
}

Jump to

Keyboard shortcuts

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