Documentation ¶
Index ¶
Constants ¶
View Source
const ( AppMessageRunningPeriodShort = "p" AppMessageRunningTimeShort = "t" AppMessageRunningPeriod = "period" AppMessageRunningTime = "time" )
Variables ¶
This section is empty.
Functions ¶
func CheckRetryableError ¶
func ReportToMonitor ¶
Types ¶
type AppMessage ¶
type AppMessage struct { Project string `yaml:"project"` Status int `yaml:"status"` Data []*MessageData `yaml:"data"` }
Tag: service name Running: period, time Duration: 0m 10m, 30m, 60m project example: 1. rpc-bsc|p|30|rpc 2. rpc-deposit|t|0|rpc
func UnmarshalAppMessage ¶
func UnmarshalAppMessage(b []byte) (*AppMessage, error)
func (*AppMessage) Marshal ¶
func (m *AppMessage) Marshal() ([]byte, error)
type MessageData ¶
Click to show internal directories.
Click to hide internal directories.