alarm

package
v0.0.0-...-1dedb3c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendSender

func AppendSender(s Sender)

func Send

func Send(data any) error

Types

type Alarm

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

func SetUp

func SetUp(opts ...OptionFunc) *Alarm

type LarkMessage

type LarkMessage struct {
	ReceiveType string
	ReceiveId   string
	MessageType string
	Content     string
}

type OptionFunc

type OptionFunc func(options *option)

type Provider

type Provider interface {
	Send(data any) error
}

type Sender

type Sender interface {
	Send(data any) error
}

Jump to

Keyboard shortcuts

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