connectors

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

connectors 包提供不同交互渠道的连接器接口定义和路由管理

该包定义了 Connector 接口,用于规范与外部渠道交互的标准方法。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector interface {
	// ChannelCode 返回该连接器对应的渠道代码(如 "github"、"gitlab")
	ChannelCode() string

	// RegisterRoutes 为该连接器注册 HTTP 路由,用于接收 Webhook 等事件
	RegisterRoutes(r gin.IRouter)
}

Connector 是渠道连接器的接口,定义了与外部渠道交互的标准方法

每个渠道(如 GitHub、GitLab、企业微信等)都需要实现该接口, 以便能够接收和处理来自该渠道的事件。

Directories

Path Synopsis
github 包提供 GitHub 平台的连接器实现
github 包提供 GitHub 平台的连接器实现
gitlab 包提供 GitLab 平台的连接器实现
gitlab 包提供 GitLab 平台的连接器实现
wework 包提供企业微信(WeWork)平台的连接器实现
wework 包提供企业微信(WeWork)平台的连接器实现

Jump to

Keyboard shortcuts

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