feishu

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	// contains filtered or unexported fields
}

func New

func New(bot *config.Bot, helper *EmailHelper) (*Bot, error)

func (Bot) Send

func (b Bot) Send(alerts *model.WebhookMessage) error

type EmailHelper

type EmailHelper struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewEmailHelper

func NewEmailHelper(app *config.App) (*EmailHelper, error)

func (*EmailHelper) Lookup

func (o *EmailHelper) Lookup(emails []string) ([]string, error)

Lookup open_ids by emails

type FakeBot

type FakeBot struct {
}

func (FakeBot) Send

func (f FakeBot) Send(message *model.WebhookMessage) error

type IBot

type IBot interface {
	Send(*model.WebhookMessage) error
}

type Sdk

type Sdk struct {
	// contains filtered or unexported fields
}

func NewSDK

func NewSDK(appID string, appSecret string) *Sdk

func (Sdk) TenantAccessToken

func (s Sdk) TenantAccessToken() (*tokenResponse, error)

TenantAccessToken https://open.feishu.cn/document/ukTMukTMukTM/uIjNz4iM2MjLyYzM

func (Sdk) WebhookV2

func (s Sdk) WebhookV2(webhook string, body io.Reader) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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