notification

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeishuNotification

type FeishuNotification struct {
	Name    string `json:"name" mapstructure:"name"`
	Enable  bool   `json:"enable" mapstructure:"enable"`
	Webhook string `json:"webhook" mapstructure:"webhook"`
}

func (*FeishuNotification) Send

func (f *FeishuNotification) Send(msg string) error

type Notification

type Notification interface {
	Send(msg string) error
}

func NewNotify

func NewNotify(n map[string]any) (Notification, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳