Documentation
¶
Overview ¶
Package bundle loads and validates the read-only descriptor bundle (descriptors.binpb + openapi.json + versions.yaml) at boot, fail-fast. The route → message binding is read verbatim (zero inference); every binding is resolved against the FileDescriptorSet here so the runtime never has to. A v0.2 bundle (transform stanzas) is refused by strict decode, not half-applied. SIGHUP hot-reload is v0.3; v0.1 loads once.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle struct {
// contains filtered or unexported fields
}
func Load ¶
Load reads, parses, validates, and resolves the bundle in dir. Any failure is fatal (returned as a typed error); the caller refuses to start.
func (*Bundle) Message ¶
func (b *Bundle) Message(fullName string) (protoreflect.MessageDescriptor, error)
Message resolves a fully-qualified proto message name against the bundle's FileDescriptorSet.
type Contract ¶
type Contract struct {
// contains filtered or unexported fields
}
Contract is one resolved v0.1 binding. Fields are unexported with accessors so it satisfies an adapter Binding interface (RequestMessage/ResponseMessage) structurally, with no import cycle.
func (*Contract) ContractVersion ¶
func (*Contract) RequestMessage ¶
func (*Contract) ResponseMessage ¶
type MessageNotFoundError ¶
func (*MessageNotFoundError) Error ¶
func (e *MessageNotFoundError) Error() string
type ParseError ¶
func (*ParseError) Error ¶
func (e *ParseError) Error() string
func (*ParseError) Unwrap ¶
func (e *ParseError) Unwrap() error
type UnsupportedVersionError ¶
type UnsupportedVersionError struct{ Version int }
func (*UnsupportedVersionError) Error ¶
func (e *UnsupportedVersionError) Error() string
type ValidationError ¶
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string