file

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtoFile

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

ProtoFile is a Protocol Buffer file.

func NewProtoFile

func NewProtoFile(
	path string,
	displayPath string,
) ProtoFile

NewProtoFile creates a new proto file.

func (ProtoFile) DisplayPath

func (f ProtoFile) DisplayPath() string

DisplayPath returns the path to display in output.

func (ProtoFile) Parse

func (f ProtoFile) Parse(
	debug bool,
) (_ *parser.Proto, err error)

Parse parses a Protocol Buffer file.

func (ProtoFile) Path

func (f ProtoFile) Path() string

Path returns the path to the .proto file.

type ProtoSet

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

ProtoSet represents a set of .proto files.

func NewProtoSet

func NewProtoSet(
	targetPaths []string,
) (ProtoSet, error)

NewProtoSet creates a new ProtoSet.

func (ProtoSet) ProtoFiles

func (s ProtoSet) ProtoFiles() []ProtoFile

ProtoFiles returns proto files.

Jump to

Keyboard shortcuts

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