mirror of
https://github.com/nabbar/golib.git
synced 2025-12-24 11:51:02 +08:00
Package Monitor:
- change type Info to split function into sub interface and add this sub interface into the Info interface
This commit is contained in:
@@ -31,10 +31,18 @@ import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
type InfoData interface {
|
||||
Info() map[string]interface{}
|
||||
}
|
||||
|
||||
type InfoName interface {
|
||||
Name() string
|
||||
}
|
||||
|
||||
type Info interface {
|
||||
encoding.TextMarshaler
|
||||
json.Marshaler
|
||||
|
||||
Name() string
|
||||
Info() map[string]interface{}
|
||||
InfoName
|
||||
InfoData
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user