Documentation
¶
Index ¶
- func NewEndpoint(scheme, host string) *url.URL
- func NormalizeEndpoint(endpoint string, defaultScheme string) (string, error)
- func ParseEndpoint(endpoints []string, scheme string) (string, error)
- func ParseEndpoints(endpoints []string) ([]*url.URL, error)
- func Scheme(scheme string, isSecure bool) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeEndpoint ¶
NormalizeEndpoint 标准化端点URL 确保端点有scheme,默认使用defaultScheme
func ParseEndpoint ¶
ParseEndpoint 从多个端点中解析出指定scheme的端点
func ParseEndpoints ¶
ParseEndpoints 解析多个端点URLs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.