Versions in this module Expand all Collapse all v1 v1.0.1 Aug 23, 2026 v1.0.0 Aug 23, 2026 Changes in this version + const DefaultContentTypeHeader + func Middleware(v Validator) source.Middleware + type ContentTypeValidator struct + Allowed []string + Header string + RequireValue bool + func (v ContentTypeValidator) Validate(_ context.Context, m source.Message) error + type Error struct + Err error + Subject string + func (e *Error) Error() string + func (e *Error) Is(target error) bool + func (e *Error) Unwrap() error + type Validator interface + Validate func(ctx context.Context, m source.Message) error + type ValidatorFunc func(ctx context.Context, m source.Message) error + func (f ValidatorFunc) Validate(ctx context.Context, m source.Message) error