http

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "http"

Variables

This section is empty.

Functions

func BuildClientConfigIndex

func BuildClientConfigIndex(dataCfg *conf.Data) (map[string]*conf.Data_Client_Endpoint, error)

BuildClientConfigIndex 预构建 HTTP 客户端配置索引,避免热路径重复遍历配置列表。

Types

type Dialer added in v0.3.0

type Dialer struct {
	// contains filtered or unexported fields
}

func NewDialer added in v0.3.0

func NewDialer(opts ...Option) *Dialer

func (*Dialer) Dial added in v0.3.0

func (d *Dialer) Dial(ctx context.Context, target string) (*khttp.Client, error)

type Option added in v0.3.0

type Option func(*dialerOptions)

func WithData added in v0.3.0

func WithData(data *conf.Data) Option

func WithDiscovery added in v0.3.0

func WithDiscovery(discovery registry.Discovery) Option

func WithLogger added in v0.3.0

func WithLogger(l logger.Logger) Option

func WithMiddleware added in v0.3.0

func WithMiddleware(mw ...middleware.Middleware) Option

Jump to

Keyboard shortcuts

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