(input string)
| 693 | } |
| 694 | |
| 695 | func validHostPort(input string) error { |
| 696 | if e := notEmpty(input); e != nil { |
| 697 | return e |
| 698 | } |
| 699 | parts := strings.Split(input, ":") |
| 700 | if len(parts) != 2 { |
| 701 | return errors.New("Please use an [IP|DOMAIN]:[PORT] string") |
| 702 | } |
| 703 | if e := validPortNumber(parts[1]); e != nil { |
| 704 | return e |
| 705 | } |
| 706 | return nil |
| 707 | } |
| 708 | |
| 709 | // ValidScheme validates that url is [SCHEME]://[IP or DOMAIN] "[http/https]://......." |
| 710 | func validScheme(input string) error { |
nothing calls this directly
no test coverage detected
searching dependent graphs…