alert

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertInterface

type AlertInterface interface {
	Warn(msg string) (bool, error)
	Error(msg string) (bool, error)
	Info(msg string) (bool, error)
	Debug(msg string) (bool, error)
	K8sSend(msg string) (bool, error)
	// contains filtered or unexported methods
}

AlertInterface -

func NewAlertClient

func NewAlertClient(conf dto.AppConf, alertConf dto.AlertConf) AlertInterface

type Client

type Client struct {
	Conf      dto.AppConf
	AlertConf dto.AlertConf
}

func (*Client) Debug

func (a *Client) Debug(msg string) (bool, error)

Debug - return bool true 发送成功; false 发送失败 ,error 失败原因

func (*Client) Error

func (a *Client) Error(msg string) (bool, error)

Error - return bool true 发送成功; false 发送失败 ,error 失败原因

func (*Client) Info

func (a *Client) Info(msg string) (bool, error)

Info - return bool true 发送成功; false 发送失败 ,error 失败原因

func (*Client) K8sSend

func (a *Client) K8sSend(msg string) (bool, error)

K8sSend - return bool true 发送成功; false 发送失败 ,error 失败原因

func (*Client) Warn

func (a *Client) Warn(msg string) (bool, error)

Warn - return bool true 发送成功; false 发送失败 ,error 失败原因

Jump to

Keyboard shortcuts

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