Documentation
¶
Overview ¶
Package protobuf registers the Protobuf renderer with the stripes registry. Import for side effects to enable application/protobuf support:
import _ "github.com/firetiger-oss/stripes/protobuf"
For application/protobuf, stripes.Func's schemaURL argument is interpreted as the full message name used to look up the descriptor in protoregistry.GlobalTypes / protoregistry.GlobalFiles. Without a resolvable schema, the renderer falls back to wire-format display.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(d protoreflect.MessageDescriptor, t protoregistry.MessageTypeResolver) stripes.Renderer
New returns a stripes.Renderer for protobuf messages. When d is nil the renderer displays the raw wire format; otherwise it decodes against the descriptor d, resolving nested message types through t.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.