houston package 독립
This commit is contained in:
21
server/monitor.go
Normal file
21
server/monitor.go
Normal file
@ -0,0 +1,21 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user