endpoint

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveRegistryEndpoint

func ResolveRegistryEndpoint(in RegistryEndpointInput) (*url.URL, error)

ResolveRegistryEndpoint 组装服务注册端点 URL。

scheme 由调用方负责完整提供(含 TLS 升级,如 "grpcs"、"https")。 query 会合并到结果 URL 的查询参数中,传 nil 表示无额外参数。 host 为空时返回 nil(不向注册中心注册端点)。

Types

type RegistryEndpointInput added in v0.3.0

type RegistryEndpointInput struct {
	Scheme   string
	BindAddr string
	Endpoint string
	Host     string
	Query    url.Values
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL