22 lines
375 B
Go
22 lines
375 B
Go
|
|
package server
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"houston/shared/protos"
|
||
|
|
)
|
||
|
|
|
||
|
|
type monitorServer struct {
|
||
|
|
protos.UnimplementedMonitorServer
|
||
|
|
}
|
||
|
|
|
||
|
|
func newMonitorServer() *monitorServer {
|
||
|
|
return &monitorServer{}
|
||
|
|
}
|
||
|
|
func (ms *monitorServer) Report(ctx context.Context, metrics *protos.Metrics) (*protos.Empty, error) {
|
||
|
|
select {
|
||
|
|
case <-ctx.Done():
|
||
|
|
default:
|
||
|
|
}
|
||
|
|
return &protos.Empty{}, nil
|
||
|
|
}
|