feishu

package
v0.0.0-...-290aaca Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feishu

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

func NewFeishu

func NewFeishu(furl string) (*Feishu, error)

func (Feishu) Send

func (b Feishu) Send(alerts *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

Jump to

Keyboard shortcuts

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