Skip to content

[middleware] Add protobuf binding middleware #194

@FumingPower3925

Description

@FumingPower3925

Context

Protocol Buffers serialization removed from core to avoid forcing google.golang.org/protobuf as a transitive dependency.

Scope

Create a protobuf middleware package that provides:

  • ProtoBuf(c *celeris.Context, code int, v proto.Message) error
  • BindProtoBuf(c *celeris.Context, v proto.Message) error
  • Bind() helper that auto-detects application/protobuf and application/x-protobuf

Dependencies

  • google.golang.org/protobuf

Migrated from goceleris/middlewares#33

Metadata

Metadata

Labels

middlewareMiddleware implementation

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions