Documentation
¶
Index ¶
- Constants
- func Error(title, message string)
- func ErrorThrottle(key string, expiration time.Duration, title, message string)
- func Info(title, message string)
- func InfoThrottle(key string, expiration time.Duration, title, message string)
- func Notify(level Level, title, message string)
- func PostToFeiShuv2(ctx context.Context, color, title, text, wh string) error
- func SetDefaultNotifier(notifier Notifier)
- func Throttle(level Level, key string, expiration time.Duration, title, message string)
- func Warn(title, message string)
- func WarnThrottle(key string, expiration time.Duration, title, message string)
- type Cards
- type Conf
- type Element
- type FSMessagev2
- type FeiShuv2Resp
- type FeishuNotifier
- type Headers
- type Level
- type Notifier
- type StdNotifier
- type Te
- type TenantAccessMeg
- type TenantAccessResp
- type Titles
Constants ¶
View Source
const ( FeishuColorOrange = "orange" FeishuColorGreen = "green" FeishuColorRed = "red" )
Variables ¶
This section is empty.
Functions ¶
func ErrorThrottle ¶
func SetDefaultNotifier ¶
func SetDefaultNotifier(notifier Notifier)
Types ¶
type FSMessagev2 ¶
type FeiShuv2Resp ¶
type FeishuNotifier ¶
type FeishuNotifier struct {
// contains filtered or unexported fields
}
func (*FeishuNotifier) Notify ¶
func (f *FeishuNotifier) Notify(level Level, title, message string)
func (*FeishuNotifier) NotifyThrottle ¶
type Notifier ¶
type Notifier interface {
Notify(level Level, title, message string)
NotifyThrottle(level Level, key string, expiration time.Duration, title, message string)
}
func NewFeishuNotify ¶
type StdNotifier ¶
type StdNotifier struct{}
func (*StdNotifier) Notify ¶
func (n *StdNotifier) Notify(level Level, title, message string)
func (*StdNotifier) NotifyThrottle ¶
type TenantAccessMeg ¶
type TenantAccessResp ¶
Click to show internal directories.
Click to hide internal directories.