schema

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package schema loads the protobuf descriptors used by ingress comparisons.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReflectionLoader added in v0.5.0

type ReflectionLoader struct{}

ReflectionLoader loads service descriptors from a gRPC reflection endpoint.

func NewReflectionLoader added in v0.5.0

func NewReflectionLoader() *ReflectionLoader

NewReflectionLoader constructs a gRPC reflection descriptor loader.

func (*ReflectionLoader) Load added in v0.5.0

func (loader *ReflectionLoader) Load(ctx context.Context, endpoint string) (*descriptorpb.FileDescriptorSet, error)

Load returns the descriptor set exposed by the endpoint's application services.

type Schema

type Schema struct {
	// contains filtered or unexported fields
}

Schema resolves messages and RPC methods from a local descriptor set.

func New

func New(data []byte) (*Schema, error)

New loads a binary FileDescriptorSet containing all of its imported files.

func NewFromFileDescriptorSet added in v0.7.0

func NewFromFileDescriptorSet(set *descriptorpb.FileDescriptorSet) (*Schema, error)

NewFromFileDescriptorSet loads a descriptor set containing all imported files.

func (*Schema) Message

Message resolves a fully qualified protobuf message name, including nested messages.

func (*Schema) Method

Method resolves a fully qualified RPC name such as example.users.v1.UserService.ListUsers.

func (*Schema) Types added in v0.7.0

func (s *Schema) Types() *dynamicpb.Types

Types returns the dynamic types resolved from this schema.

Jump to

Keyboard shortcuts

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