push

package
v1.0.32 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPush

func GetPush(config conf.Config) func(kind string, message string)

func MarkDown

func MarkDown(title, text string, ats ...string) map[string]interface{}

func PushMessage

func PushMessage(title, content, message, pushID string) error

func Text

func Text(text string, ats ...string) map[string]interface{}

Types

type Ding

type Ding struct {
	Secret string `json:"Secret"`
	Token  string `json:"token"`
}

func (*Ding) Send

func (d *Ding) Send() func(kind string, message string)

type PushPlus

type PushPlus struct {
	Token string
}

func (*PushPlus) Init

func (p *PushPlus) Init() func(kind, message string)

type TypeSecret

type TypeSecret struct {
	Webhook string
	Secret  string
}

func (*TypeSecret) SendMessage

func (t *TypeSecret) SendMessage(data map[string]interface{}) error

SendMessage Function to send message

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL