util

package
v0.0.0-...-be882d2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

func Alert(msg string)

Alert sends alert to

func LogErr

func LogErr(err error)

LogErr logs error

func SendLarkAlert

func SendLarkAlert(msg string)

func SendSlackAlert

func SendSlackAlert(msg string)

func SetLarkURL

func SetLarkURL(url string)

SetLarkURL sets the lark post url

func SetPrefix

func SetPrefix(s string)

func SetSlackURL

func SetSlackURL(url string)

SetSlackURL sets the slack post url

Types

type Payload

type Payload struct {
	Text string `json:"text,omitempty"`
}

Payload is the message struct for slack

Jump to

Keyboard shortcuts

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