sender

package
v0.0.0-...-abd0671 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	Type    string             `json:"type"`
	Alert   alarm.AlarmTask    `json:"alert"`
	Contact alarm.AlarmContact `json:"contact"`
}

func (*Channel) Marshal

func (c *Channel) Marshal(val interface{}) (b []byte, err error)

func (*Channel) NewChannel

func (c *Channel) NewChannel() Service

func (*Channel) Requests

func (c *Channel) Requests(remoteURL string, params *bytes.Buffer) ([]byte, error)

Requests

func (*Channel) Unmarshal

func (c *Channel) Unmarshal(data []byte, v interface{}) error

type DingDing

type DingDing struct{ *Channel }

func (*DingDing) Delivery

func (c *DingDing) Delivery() (r Response)

type FeiShu

type FeiShu struct{ *Channel }

FeiShu

func (*FeiShu) Delivery

func (c *FeiShu) Delivery() (r Response)

Sender

type MailObject

type MailObject struct{ *Channel }

func (*MailObject) Delivery

func (c *MailObject) Delivery() (r Response)

type OpsAlert

type OpsAlert struct{ *Channel }

func (*OpsAlert) Delivery

func (c *OpsAlert) Delivery() (r Response)

type Response

type Response struct {
	Data interface{}
	Err  error
}

type Service

type Service interface {
	Delivery() Response
}

type WebHook

type WebHook struct{ *Channel }

func (*WebHook) Delivery

func (c *WebHook) Delivery() (r Response)

Jump to

Keyboard shortcuts

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