Versions in this module Expand all Collapse all v1 v1.0.3 Dec 6, 2024 v1.0.2 Nov 22, 2024 Changes in this version + var Info embed.FS + type AuthUserResp struct + Errmsg string + Ok bool + User *UserInfo + type Importer struct + type Member struct + ID string + Name string + TeamID string + type OAuthResponseIncomingWebhook struct + Channel string + ChannelID string + ConfigurationURL string + URL string + type OAuthV2ResponseAuthedUser struct + AccessToken string + ExpiresIn int + ID string + RefreshToken string + Scope string + TokenType string + type OAuthV2ResponseEnterprise struct + ID string + Name string + type OAuthV2ResponseTeam struct + ID string + Name string + type RespBody struct + Code int + Data interface{} + Message string + Reason string + func NewRespBodyData(code int, reason string, data interface{}) *RespBody + type SlackClient struct + AccessToken string + AuthedUserID string + ChannelMapping string + ClientID string + ClientSecret string + RedirectURI string + UserInfoMapping map[string]*UserInfo + func NewSlackClient(clientID, clientSecret string) *SlackClient + func NewSlackClientWithConfig(clientID, clientSecret, redirectURI string) *SlackClient + func (sc *SlackClient) AuthUser(code string) (info *UserInfo, err error) + func (sc *SlackClient) GetUserDetailInfo(userid string) (info *UserInfo, err error) + func (sc *SlackClient) UpdateUserInfo() (err error) + type SlackUserResponse struct + Ok bool + User struct{ ... } + type TokenResponse struct + AccessToken string + AppID string + AuthedUser OAuthV2ResponseAuthedUser + BotUserID string + Enterprise OAuthV2ResponseEnterprise + Error string + ExpiresIn int + IncomingWebhook OAuthResponseIncomingWebhook + IsEnterpriseInstall bool + RefreshToken string + Scope string + Team OAuthV2ResponseTeam + TokenType string + type UserCenter struct + Cache *cache.Cache + Config *UserCenterConfig + SlackClient *SlackClient + UserConfigCache *UserConfigCache + func (uc *UserCenter) AfterLogin(externalID, accessToken string) + func (uc *UserCenter) BuildSlackBaseRedirectURL() string + func (uc *UserCenter) ConfigFields() []plugin.ConfigField + func (uc *UserCenter) ConfigReceiver(config []byte) error + func (uc *UserCenter) ControlCenterItems() []plugin.ControlCenter + func (uc *UserCenter) CronSyncData() + func (uc *UserCenter) Description() plugin.UserCenterDesc + func (uc *UserCenter) GetNewQuestionSubscribers() (userIDs []string) + func (uc *UserCenter) GetQuestion(ctx *gin.Context) (questionInfo plugin.QuestionImporterInfo, err error) + func (uc *UserCenter) GetSlackRedirectURL(ctx *gin.Context) + func (uc *UserCenter) Info() plugin.Info + func (uc *UserCenter) LoginCallback(ctx *plugin.GinContext) (userInfo *plugin.UserCenterBasicUserInfo, err error) + func (uc *UserCenter) Notify(msg plugin.NotificationMessage) + func (uc *UserCenter) PersonalBranding(externalID string) (branding []*plugin.PersonalBranding) + func (uc *UserCenter) RegisterAuthAdminRouter(r *gin.RouterGroup) + func (uc *UserCenter) RegisterAuthUserRouter(r *gin.RouterGroup) + func (uc *UserCenter) RegisterImporterFunc(ctx context.Context, importerFunc plugin.ImporterFunc) + func (uc *UserCenter) RegisterUnAuthRouter(r *gin.RouterGroup) + func (uc *UserCenter) SignUpCallback(ctx *plugin.GinContext) (userInfo *plugin.UserCenterBasicUserInfo, err error) + func (uc *UserCenter) SlashCommand(ctx *gin.Context) + func (uc *UserCenter) Sync(ctx *gin.Context) + func (uc *UserCenter) UserConfigFields() []plugin.ConfigField + func (uc *UserCenter) UserConfigReceiver(userID string, config []byte) error + func (uc *UserCenter) UserInfo(externalID string) (userInfo *plugin.UserCenterBasicUserInfo, err error) + func (uc *UserCenter) UserList(externalIDs []string) (userList []*plugin.UserCenterBasicUserInfo, err error) + func (uc *UserCenter) UserSettings(externalID string) (userSettings *plugin.SettingInfo, err error) + func (uc *UserCenter) UserStatus(externalID string) (userStatus plugin.UserStatus) + type UserCenterConfig struct + AutoSync bool + ClientID string + ClientSecret string + Notification bool + RedirectURI string + SigningSecret string + type UserConfig struct + AllNewQuestions bool + DownvotedAnswers bool + InboxNotifications bool + NewQuestionsForFollowingTags bool + UpdatedAnswers bool + UpdatedQuestions bool + UpvotedAnswers bool + WebhookURL string + type UserConfigCache struct + func NewUserConfigCache() *UserConfigCache + func (ucc *UserConfigCache) SetUserConfig(userID string, config *UserConfig) + type UserInfo struct + Deleted bool + Enable bool + Has2FA bool + ID string + IsAdmin bool + IsAppUser bool + IsAvailable bool + IsBot bool + IsOwner bool + IsPrimaryOwner bool + IsRestricted bool + IsUltraRestricted bool + LastLogin int64 + Name string + Profile UserProfile + RealName string + Status int + TeamID string + TimeZone string + TimeZoneLabel string + TimeZoneOffset int + Updated int64 + type UserProfile struct + AvatarHash string + DisplayName string + Email string + Image192 string + Image24 string + Image32 string + Image48 string + Image512 string + Image72 string + ImageOriginal string + RealName string + StatusEmoji string + StatusText string + type WebhookReq struct + Blocks []struct{ ... } + func NewWebhookReq(content string) *WebhookReq