houston package 독립

This commit is contained in:
2023-05-21 23:37:54 +09:00
commit 3e8c79a48b
20 changed files with 3152 additions and 0 deletions

21
server/monitor.go Normal file
View 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
}