Versions in this module Expand all Collapse all v0 v0.1.0 Jan 4, 2024 Changes in this version + func Errorf(template string, args ...any) *connect.Error + func GetInfo(ctx context.Context) any + func SetInfo(ctx context.Context, info any) context.Context + func WithoutInfo(ctx context.Context) context.Context + type AuthFunc func(ctx context.Context, req Request) (any, error) + type Middleware struct + func NewMiddleware(auth AuthFunc, opts ...connect.HandlerOption) *Middleware + func (m *Middleware) Wrap(handler http.Handler) http.Handler + type Request struct + func (r Request) BasicAuth() (username string, password string, ok bool) + func (r Request) ClientAddr() string + func (r Request) Cookie(name string) (*http.Cookie, error) + func (r Request) Cookies() []*http.Cookie + func (r Request) Header() http.Header + func (r Request) Procedure() string + func (r Request) Protocol() string + func (r Request) TLS() *tls.ConnectionState