render

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RuleGOGOProto = &ImportRule{
		Match:     "gogoproto.",
		ProtoFile: "gogo/protobuf/gogoproto/gogo.proto",
		Dependents: []string{
			"google/protobuf/descriptor.proto",
		},
	}
	RuleHDSDK     = &ImportRule{Match: "hdsdk.protobuf.", ProtoFile: "hdsdk/protobuf/sdk.proto"}
	RuleGoogleAny = &ImportRule{Match: "google.protobuf.Any", ProtoFile: "google/protobuf/any.proto"}
)

Functions

This section is empty.

Types

type ImportRule

type ImportRule struct {
	Match      string
	ProtoFile  string
	Dependents []string
}

type ProtoRender

type ProtoRender struct {
	PbImports  []string
	PbTypeDefs []*pbreader.PbTypeDef
}

func New

func New(pbTypeDefs []*pbreader.PbTypeDef) *ProtoRender

func (*ProtoRender) Render

func (p *ProtoRender) Render() ([]string, []byte, error)

Jump to

Keyboard shortcuts

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