github.com/projecteru2/core@v0.0.0-20240321043226-06bcc1c23f58/store/etcdv3/helper.go (about) 1 package etcdv3 2 3 import ( 4 "strings" 5 ) 6 7 func parseStatusKey(key string) (string, string, string, string) { 8 parts := strings.Split(key, "/") 9 l := len(parts) 10 return parts[l-4], parts[l-3], parts[l-2], parts[l-1] 11 }