{"modulePath":"github.com/ca-x/bufplugins","version":"v0.0.0-20260521061321-00694c94097e","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package echoadapter\n\n## Functions\n\n```go\nfunc RegisterService(e *echo.Echo, spec httpadapter.ServiceSpec, connectHandler http.Handler, opts ...Option) error\n```\n\n## Types\n\n```go\ntype Config struct {\n\tGroupPrefix          string\n\tMiddlewares          []echo.MiddlewareFunc\n\tConnectOptions       []connect.HandlerOption\n\tRequestBinder        binding.RequestBinder\n\tResponseWriter       response.ResponseWriter\n\tValidator            validate.Validator\n\tErrorMapper          adaptererrors.ErrorMapper\n\tErrorWriter          adaptererrors.ErrorWriter\n\tMethodRequestBinders map[string]binding.RequestBinder\n\tMethodWriters        map[string]response.ResponseWriter\n\tMethodValidators     map[string]validate.Validator\n\tMethodErrorMappers   map[string]adaptererrors.ErrorMapper\n\tMethodErrorWriters   map[string]adaptererrors.ErrorWriter\n}\n```\n\n```go\nfunc NewConfig(opts ...Option) Config\n```\n\n```go\ntype Option func(*Config)\n```\n\n```go\nfunc WithConnectOptions(options ...connect.HandlerOption) Option\n```\n\n```go\nfunc WithErrorMapper(mapper adaptererrors.ErrorMapper) Option\n```\n\n```go\nfunc WithErrorWriter(writer adaptererrors.ErrorWriter) Option\n```\n\n```go\nfunc WithGroupPrefix(prefix string) Option\n```\n\n```go\nfunc WithMethodErrorMapper(service, method string, mapper adaptererrors.ErrorMapper) Option\n```\n\n```go\nfunc WithMethodErrorMapperKey(key string, mapper adaptererrors.ErrorMapper) Option\n```\n\n```go\nfunc WithMethodErrorWriter(service, method string, writer adaptererrors.ErrorWriter) Option\n```\n\n```go\nfunc WithMethodErrorWriterKey(key string, writer adaptererrors.ErrorWriter) Option\n```\n\n```go\nfunc WithMethodRequestBinder(service, method string, binder binding.RequestBinder) Option\n```\n\n```go\nfunc WithMethodRequestBinderKey(key string, binder binding.RequestBinder) Option\n```\n\n```go\nfunc WithMethodResponseWriter(service, method string, writer response.ResponseWriter) Option\n```\n\n```go\nfunc WithMethodResponseWriterKey(key string, writer response.ResponseWriter) Option\n```\n\n```go\nfunc WithMethodValidator(service, method string, validator validate.Validator) Option\n```\n\n```go\nfunc WithMethodValidatorKey(key string, validator validate.Validator) Option\n```\n\n```go\nfunc WithMiddleware(middlewares ...echo.MiddlewareFunc) Option\n```\n\n```go\nfunc WithRequestBinder(binder binding.RequestBinder) Option\n```\n\n```go\nfunc WithResponseWriter(writer response.ResponseWriter) Option\n```\n\n```go\nfunc WithValidator(validator validate.Validator) Option\n```\n\n```go\ntype ServiceRegistrar struct {\n\tSpec           httpadapter.ServiceSpec\n\tConnectHandler http.Handler\n\tConfig         Config\n}\n```\n\n```go\nfunc (r ServiceRegistrar) Register(e *echo.Echo) error\n```\n\n","path":"github.com/ca-x/bufplugins/runtime/echoadapter","name":"echoadapter","synopsis":"","isRedistributable":true}
