Documentation ¶
Index ¶
Constants ¶
View Source
const HeaderXRequestID = "x-request-id"
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Interceptor ¶
type Interceptor struct {
// contains filtered or unexported fields
}
func NewRequestIDInterceptor ¶
func NewRequestIDInterceptor(allowEmptyRequestID bool, logger *slog.Logger) *Interceptor
NewRequestIDInterceptor creates a new Interceptor instance.
func (*Interceptor) WrapStreamingClient ¶
func (i *Interceptor) WrapStreamingClient(next connect.StreamingClientFunc) connect.StreamingClientFunc
WrapStreamingClient wraps a streaming client function with request ID validation.
func (*Interceptor) WrapStreamingHandler ¶
func (i *Interceptor) WrapStreamingHandler(next connect.StreamingHandlerFunc) connect.StreamingHandlerFunc
WrapStreamingHandler wraps a streaming handler function with request ID validation.
Click to show internal directories.
Click to hide internal directories.