Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func ReadUserIP ¶
Types ¶
type LicenseResolver ¶ added in v0.0.4
type LicenseResolver struct {
validation.LicenseResolver
Meter metric.Meter
// contains filtered or unexported fields
}
func (*LicenseResolver) ResolveLicense ¶ added in v0.0.4
func (l *LicenseResolver) ResolveLicense(ctx context.Context, m validation.Module) (validation.License, error)
type ReadCounter ¶
type ReadCounter struct {
io.ReadCloser
Size int
}
type TraceTransport ¶ added in v0.0.4
type TraceTransport struct {
http.RoundTripper
ServiceName string
Tracer trace.Tracer
Meter metric.Meter
// contains filtered or unexported fields
}
TraceTransport is a wrapper of http.RoundTripper for tracing requests through opentelemetry
type WriterInterceptor ¶
type WriterInterceptor struct {
http.ResponseWriter
Size int
// contains filtered or unexported fields
}
func (*WriterInterceptor) Code ¶
func (w *WriterInterceptor) Code() int
func (*WriterInterceptor) WriteHeader ¶
func (w *WriterInterceptor) WriteHeader(code int)
Click to show internal directories.
Click to hide internal directories.