robot

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookRobot

type WebhookRobot interface {
	// RefreshPrivateRobotToken 刷新私有机器人令牌
	RefreshPrivateRobotToken(ctx context.Context)
	// GetPrivateRobotToken 获取当前的私有机器人令牌
	GetPrivateRobotToken() string
	// GetTenantAccessToken 获取租户访问令牌
	GetTenantAccessToken(ctx context.Context) (string, error)
}

WebhookRobot 定义了Webhook机器人相关的接口

func NewWebhookRobot

func NewWebhookRobot(logger *zap.Logger) WebhookRobot

NewWebhookRobot 创建一个新的 webhookRobot 实例

Jump to

Keyboard shortcuts

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