protobuf

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetParsedSchema

func GetParsedSchema(data []byte) (schema.ParsedSchema, error)

GetParsedSchema converts data into enriched data type to deal with protobuf schema

Types

type Schema

type Schema struct {
	*protoregistry.Files
	// contains filtered or unexported fields
}

func (*Schema) Format

func (s *Schema) Format() string

func (*Schema) GetCanonicalValue

func (s *Schema) GetCanonicalValue() *schema.SchemaFile

func (*Schema) IsBackwardCompatible

func (s *Schema) IsBackwardCompatible(against schema.ParsedSchema) error

IsBackwardCompatible checks backward compatibility against given schema Allowed changes: field addition Disallowed changes: field type change, tag number change, label change, field deletion

func (*Schema) IsForwardCompatible

func (s *Schema) IsForwardCompatible(against schema.ParsedSchema) error

IsForwardCompatible for protobuf forward compatible is same as backward compatible Allowed changes: field addition, field deletion given tag number marked as reserved Disallowed changes: field type change, tag number change, label change

func (*Schema) IsFullCompatible

func (s *Schema) IsFullCompatible(against schema.ParsedSchema) error

IsFullCompatible for protobuf forward compatible is same as backward compatible

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL