endpoint

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveRegistry

func ResolveRegistry(in RegistryInput) (*url.URL, error)

ResolveRegistry 组装服务注册端点 URL。

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

Types

type RegistryInput

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

RegistryInput 描述向服务注册中心宣告端点所需的输入参数。

Jump to

Keyboard shortcuts

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