Documentation
¶
Index ¶
Constants ¶
View Source
const (
// ConnectionNameHeader 连接名头
ConnectionNameHeader = "X-Scaf-Connection-Name"
)
Variables ¶
This section is empty.
Functions ¶
func GetTokenHandler ¶
func GetTokenHandler(handler http.Handler) http.HandlerFunc
GetTokenHandler 从请求中获取 Token 并注入上下文的 HTTP 处理器
func NewHTTPHandler ¶
func NewHTTPHandler( genericAuthnServer *generic.AuthenticationServer, genericStreamsServer *generic.StreamsServer, opts Options) http.Handler
NewHTTPHandler 创建 HTTP 请求处理器
func WithLoggerHandler ¶
WithLoggerHandler 带 logr.Logger 的 HTTP 处理器
Types ¶
Click to show internal directories.
Click to hide internal directories.