webhook

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultWxWorkTpl = `
	{
		"msgtype": "text",
		"text": {
			"content": "{{ .Message }}"
		}
	}
`

Variables

This section is empty.

Functions

This section is empty.

Types

type Notify

type Notify struct {
	// contains filtered or unexported fields
}

func New

func New(webhook string, webhookTpl string) *Notify

func (*Notify) Notify

func (n *Notify) Notify(message string)

type TplData

type TplData struct {
	Message string
}

Jump to

Keyboard shortcuts

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