structure

package
v0.0.0-...-fb79b61 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFromDescriptors

func BuildFromDescriptors(config *config_j5pb.Config, descriptors *descriptorpb.FileDescriptorSet, proseResolver ProseResolver) (*schema_j5pb.API, error)

func BuildFromImage

func BuildFromImage(image *source_j5pb.SourceImage) (*schema_j5pb.API, error)

func Ptr

func Ptr[T any](val T) *T

Types

type DirResolver

type DirResolver string

func (DirResolver) ResolveProse

func (dr DirResolver) ResolveProse(filename string) (string, error)

type ProseResolver

type ProseResolver interface {
	ResolveProse(filename string) (string, error)
}

type SchemaSet

type SchemaSet struct {
	Options *config_j5pb.CodecOptions
	Schemas map[string]*schema_j5pb.Schema
	// contains filtered or unexported fields
}

func NewSchemaSet

func NewSchemaSet(options *config_j5pb.CodecOptions) *SchemaSet

func (*SchemaSet) BuildSchemaObject

func (ss *SchemaSet) BuildSchemaObject(src protoreflect.MessageDescriptor) (*schema_j5pb.Schema, error)

Jump to

Keyboard shortcuts

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