Documentation ¶
Overview ¶
Package conf 包含一些配置接口
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppAccessTokenProvider ¶
type AppAccessTokenProvider interface { // FeishuAppAccessToken 返回 app access token 或错误 FeishuAppAccessToken() (string, error) }
AppAccessTokenProvider 提供 app access token
type AppAccessTokenProviderFunc ¶
AppAccessTokenProviderFunc 是函数形式的 AppAccessTokenProvider
func (AppAccessTokenProviderFunc) FeishuAppAccessToken ¶
func (f AppAccessTokenProviderFunc) FeishuAppAccessToken() (string, error)
type AppConfig ¶
type AppConfig interface { // FeishuAppId 返回飞书应用唯一标识 FeishuAppId() string // FeishuAppSecret 返回飞书应用秘钥 FeishuAppSecret() string }
AppConfig 是应用配置
func NewAppConfig ¶
NewAppConfig 创建一个 AppConfig
type AppTicketProvider ¶
type AppTicketProvider interface { // FeishuAppTicket 返回 app ticket 或错误 FeishuAppTicket() (string, error) }
AppTicketProvider 提供 app ticket
type AppTicketProviderFunc ¶
AppTicketProviderFunc 是函数形式的 AppTicketProvider
func (AppTicketProviderFunc) FeishuAppTicket ¶
func (f AppTicketProviderFunc) FeishuAppTicket() (string, error)
type DefaultAppConfig ¶
DefaultAppConfig 是默认应用配置
func (*DefaultAppConfig) FeishuAppId ¶
func (cnf *DefaultAppConfig) FeishuAppId() string
FeishuAppId 满足 AppConfig 接口
func (*DefaultAppConfig) FeishuAppSecret ¶
func (cnf *DefaultAppConfig) FeishuAppSecret() string
FeishuAppSecret 满足 AppConfig 接口
type DefaultWebhookConfig ¶
type DefaultWebhookConfig struct { VerifToken string `json:"verifToken"` EncryptKey string `json:"encryptKey"` }
DefaultAppConfig 是默认的事件订阅配置
func (*DefaultWebhookConfig) FeishuWebhookEncryptKey ¶
func (cnf *DefaultWebhookConfig) FeishuWebhookEncryptKey() string
FeishuWebhookEncryptKey 满足 WebhookConfig 接口
func (*DefaultWebhookConfig) FeishuWebhookVerifToken ¶
func (cnf *DefaultWebhookConfig) FeishuWebhookVerifToken() string
FeishuWebhookVerifToken 满足 WebhookConfig 接口
type TenantAccessTokenProvider ¶
type TenantAccessTokenProvider interface { // FeishuTenantAccessToken 返回 tenant access token 或错误 FeishuTenantAccessToken() (string, error) }
TenantAccessTokenProvider 提供 tenant access token
type TenantAccessTokenProviderFunc ¶
TenantAccessTokenProviderFunc 是函数形式的 TenantAccessTokenProvider
func (TenantAccessTokenProviderFunc) FeishuTenantAccessToken ¶
func (f TenantAccessTokenProviderFunc) FeishuTenantAccessToken() (string, error)
type WebhookConfig ¶
type WebhookConfig interface { // FeishuWebhookVerifToken 返回飞书应用事件订阅的 Verification Token FeishuWebhookVerifToken() string // FeishuWebhookEncryptKey 返回飞书应用事件订阅的加密密钥 FeishuWebhookEncryptKey() string }
WebhookConfig 是应用事件订阅配置
func NewWebhookConfig ¶
func NewWebhookConfig(verifToken, encryptKey string) WebhookConfig
NewWebhookConfig 创建一个 WebhookConfig
Click to show internal directories.
Click to hide internal directories.