Versions in this module Expand all Collapse all v1 v1.0.4 Nov 7, 2025 v1.0.3 Jan 7, 2025 Changes in this version + const LarkBindAccountMenuEventKey + const MsgTypeText + const NotificationTypeInteractive + const ReceiveIdTypeOpenId + var Info embed.FS + var TagColor = []string + func GenerateRandomString(args *GenerateRandomStringArgs) string + func PtrBool(b bool) *bool + func RandomInt(min, max int64) int64 + type Action struct + Actions []*Button + Tag string + type Behavior struct + AndroidURL string + DefaultURL string + IOSURL string + PCURL string + Type string + type Button struct + Behaviors []Behavior + HoverTips *Text + Tag string + Text *Text + Type string + Value map[string]any + Width string + func (b *Button) MarshalJSON() ([]byte, error) + type Card struct + CardLink *CardLink + Config *Config + Header *Header + I18nElements *I18nElements + type CardLink struct + AndroidURL string + IOSURL string + PCURL string + URL string + type Color string + const ColorBlue + const ColorCarmine + const ColorGreen + const ColorIndigo + const ColorLime + const ColorNeutral + const ColorOrange + const ColorPurple + const ColorRed + const ColorTurquoise + const ColorViolet + const ColorWathet + const ColorYellow + type Column struct + BackgroundStyle string + Elements []Element + Padding string + Tag string + VerticalAlign string + VerticalSpacing string + Weight int + Width string + func (c *Column) MarshalJSON() ([]byte, error) + type ColumnSet struct + func (cs *ColumnSet) MarshalJSON() ([]byte, error) + type Config struct + EnableForward *bool + EnableForwardInteraction *bool + StreamingMode *bool + Style Style + Summary *Summary + UpdateMulti *bool + UseCustomTranslation *bool + WidthMode string + type ConfigColor struct + DarkMode string + LightMode string + type Element struct + func (e *Element) MarshalJSON() ([]byte, error) + type GenerateRandomStringArgs struct + Length uint64 + StringPool string + type Header struct + Subtitle *Text + Template Template + TextTagList []TextTag + Title *Text + UdIcon *Icon + type I18n struct + EnUs string + ZhCn string + type I18nElements struct + EnUs []ColumnSet + ZhCn []ColumnSet + type Icon struct + Color string + ImgKey string + Style ... + Tag string + Token string + type LarkClient struct + func (n *LarkClient) Start() error + type LarkLogger struct + func (l LarkLogger) Debug(ctx context.Context, args ...interface{}) + func (l LarkLogger) Error(ctx context.Context, args ...interface{}) + func (l LarkLogger) Info(ctx context.Context, args ...interface{}) + func (l LarkLogger) Warn(ctx context.Context, args ...interface{}) + type Notification struct + func (n *Notification) ConfigFields() []plugin.ConfigField + func (n *Notification) ConfigReceiver(config []byte) error + func (n *Notification) GetNewQuestionSubscribers() (userIDs []string) + func (n *Notification) LarkWsEventHub() *dispatcher.EventDispatcher + func (n *Notification) LarkWsEventMenuClick(ctx context.Context, event *larkApplication.P2BotMenuV6) error + func (n *Notification) Notify(msg plugin.NotificationMessage) + func (n *Notification) UserConfigFields() []plugin.ConfigField + func (n *Notification) UserConfigReceiver(userID string, config []byte) error + func (n Notification) Info() plugin.Info + type NotificationConfig struct + AppID string + AppSecret string + EventEncryptKey string + VerificationToken string + Version string + func (n *NotificationConfig) GetAppID() string + func (n *NotificationConfig) GetAppSecret() string + func (n *NotificationConfig) GetEventEncryptKey() string + func (n *NotificationConfig) GetVerificationToken() string + func (n *NotificationConfig) GetVersion() string + type PlainText struct + Icon *Icon + Tag string + Text *Text + type Show struct + BackgroundStyle string + Columns []Column + FlexMode string + HorizontalSpacing string + Tag string + type Style struct + Color map[string]ConfigColor + TextSize map[string]TextSize + type Summary struct + Content string + I18nContent map[string]string + type Template string + const ThemeBlue + const ThemeCarmine + const ThemeDefault + const ThemeGreen + const ThemeGrey + const ThemeIndigo + const ThemeOrange + const ThemePurple + const ThemeRed + const ThemeTurquoise + const ThemeViolet + const ThemeWathet + const ThemeYellow + type Text struct + Content string + I18n *I18n + Icon *Icon + Tag string + TextAlign string + TextColor string + TextSize string + type TextSize struct + Default string + Mobile string + PC string + type TextTag struct + Color string + Tag string + Text *Text + func (tt *TextTag) MarshalJSON() ([]byte, error) + type UserConfig struct + AllNewQuestions bool + InboxNotifications bool + NewQuestionsForFollowingTags bool + OpenId string + type UserConfigCache struct + func NewUserConfigCache() *UserConfigCache + func (ucc *UserConfigCache) SetUserConfig(userID string, config *UserConfig)