traefik/integration/vendor/github.com/ArthurHlt/go-eureka-client/eureka/delete.go

11 lines
226 B
Go
Raw Normal View History

2017-02-07 21:33:23 +00:00
package eureka
import "strings"
func (c *Client) UnregisterInstance(appId, instanceId string) error {
values := []string{"apps", appId, instanceId}
path := strings.Join(values, "/")
_, err := c.Delete(path)
return err
}