20 lines
528 B
Go
20 lines
528 B
Go
|
|
package starnotify
|
||
|
|
|
||
|
|
import "b612.me/notify"
|
||
|
|
|
||
|
|
func GetClientDiagnosticsSnapshot(key string) (notify.ClientDiagnosticsSnapshot, error) {
|
||
|
|
client, err := Client(key)
|
||
|
|
if err != nil {
|
||
|
|
return notify.ClientDiagnosticsSnapshot{}, err
|
||
|
|
}
|
||
|
|
return notify.GetClientDiagnosticsSnapshot(client)
|
||
|
|
}
|
||
|
|
|
||
|
|
func GetServerDiagnosticsSnapshot(key string) (notify.ServerDiagnosticsSnapshot, error) {
|
||
|
|
server, err := Server(key)
|
||
|
|
if err != nil {
|
||
|
|
return notify.ServerDiagnosticsSnapshot{}, err
|
||
|
|
}
|
||
|
|
return notify.GetServerDiagnosticsSnapshot(server)
|
||
|
|
}
|