rt

package
v0.30.0 Latest Latest
Warning

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

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

Documentation

Overview

Package rt 提供网关 BaseURL 规范化与路径拼接。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Join

func Join(origin, path string) string

Join 将 origin 与必须以 / 开头的 path 拼接。

func NormalizeOrigin

func NormalizeOrigin(base string) string

NormalizeOrigin 将 BaseURL 规范为「仅含 scheme+host(及非 /v1 的路径前缀)」的 origin。 若用户配置以 /v1 结尾(常见网关写法),会剥掉该后缀,以便同时拼接 /v1/... 与 /kling/... 等路径。

Types

This section is empty.

Jump to

Keyboard shortcuts

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