MCPcopy
hub / github.com/uber/aresdb / updateEntity

Function updateEntity

controller/mutators/etcd/common.go:87–92  ·  view source on GitHub ↗
(entityList pb.EntityList, name string)

Source from the content-addressed store, hash-verified

85}
86
87func updateEntity(entityList pb.EntityList, name string) (pb.EntityList, bool) {
88 nowTs := utils.Now().UnixNano()
89 return find(entityList, name, func(entity *pb.EntityName) {
90 entity.LastUpdatedAt = nowTs
91 })
92}
93
94func find(entityList pb.EntityList, name string, doWithEntity func(*pb.EntityName)) (pb.EntityList, bool) {
95 found := false

Callers 3

UpdateJobMethod · 0.85
UpdateTableMethod · 0.85

Calls 2

NowFunction · 0.92
findFunction · 0.85

Tested by

no test coverage detected