github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/networking/v2/extensions/elb/backendecs/urls.go (about) 1 package backendecs 2 3 import "github.com/huaweicloud/golangsdk" 4 5 const ( 6 rootPath = "elbaas" 7 resourcePath = "listeners" 8 memberPath = "members" 9 ) 10 11 func rootURL(c *golangsdk.ServiceClient, lId string) string { 12 return c.ServiceURL(c.ProjectID, rootPath, resourcePath, lId, memberPath) 13 } 14 15 func actionURL(c *golangsdk.ServiceClient, lId string) string { 16 return c.ServiceURL(c.ProjectID, rootPath, resourcePath, lId, memberPath, "action") 17 }