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:
Nicolas JUHEL
2025-10-13 11:56:22 +02:00
parent dcb8fabc25
commit bb527d1d56

View File

@@ -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
}