message

package
v0.0.0-...-7757931 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIp

func GetIp()

Types

type Message

type Message struct {
	Key        string  `json:"key,omitempty"`
	Title      string  `json:"Title,omitempty"`
	HostName   string  `json:"HostName,omitempty"`
	Pname      string  `json:"Pname,omitempty"`
	Name       string  `json:"Name,omitempty"`
	Addr       string  `json:"Addr,omitempty"`
	DiskPath   string  `json:"DiskPath,omitempty"`
	Use        uint64  `json:"Use,omitempty"`
	UsePercent float64 `json:"UsePercent,omitempty"`
	Total      uint64  `json:"Total,omitempty"`
	BrokenTime string  `json:"BrokenTime,omitempty"`
	FixTime    string  `json:"FixTime,omitempty"`
	Reason     string  `json:"Reason,omitempty"`
	Top        string  `json:"Top,omitempty"`
}

func (*Message) FormatBody

func (am *Message) FormatBody(format string) string

func (*Message) String

func (msg *Message) String() string

type SendAlerter

type SendAlerter interface {
	Send(body *Message, to ...string) error
}

发送信息的接口

Jump to

Keyboard shortcuts

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