Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(847)

Unified Diff: go/src/infra/crimson/proto/crimsonserver_dec.go

Issue 2108643006: crimson server: Implemented SelectHost and InsertHost (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@mactohex
Patch Set: Added NULL support for boot class Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « go/src/infra/crimson/proto/crimson.pb.go ('k') | go/src/infra/crimson/proto/pb.discovery.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/crimson/proto/crimsonserver_dec.go
diff --git a/go/src/infra/crimson/proto/crimsonserver_dec.go b/go/src/infra/crimson/proto/crimsonserver_dec.go
index 62b909274b7be7f18e836c866edafe40eeccce0a..3984e1888d718a815a76e82dbb7cf62971a3219a 100644
--- a/go/src/infra/crimson/proto/crimsonserver_dec.go
+++ b/go/src/infra/crimson/proto/crimsonserver_dec.go
@@ -30,3 +30,19 @@ func (s *DecoratedCrimson) ReadIPRange(c context.Context, req *IPRangeQuery) (*I
}
return s.Service.ReadIPRange(c, req)
}
+
+func (s *DecoratedCrimson) CreateHost(c context.Context, req *HostList) (*HostStatus, error) {
+ c, err := s.Prelude(c, "CreateHost", req)
+ if err != nil {
+ return nil, err
+ }
+ return s.Service.CreateHost(c, req)
+}
+
+func (s *DecoratedCrimson) ReadHost(c context.Context, req *HostQuery) (*HostList, error) {
+ c, err := s.Prelude(c, "ReadHost", req)
+ if err != nil {
+ return nil, err
+ }
+ return s.Service.ReadHost(c, req)
+}
« no previous file with comments | « go/src/infra/crimson/proto/crimson.pb.go ('k') | go/src/infra/crimson/proto/pb.discovery.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698