protopath

package
v0.0.0-...-7149754 Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveDependencyPaths

func ResolveDependencyPaths(ctx context.Context, src string, versions []module.Version, modules ...Module) (paths []string, err error)

ResolveDependencyPaths resolves dependency proto paths (include/-I) for modules over given r inside go modules. r should be the list of required packages of the target go app. it is used to resolve exact versions of the go modules that used by the target app. global dependencies are also included to paths.

Types

type Module

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

Module represents a go module that hosts dependency proto paths.

func NewModule

func NewModule(importPath string, protoPaths ...string) Module

NewModule cretes a new go module representation to look for protoPaths.

Jump to

Keyboard shortcuts

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