protoparser

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v2.1.0

func New(ctx context.Context, path string) (protoparse.Parser, string, error)

New initializes a proto parser.

func NewFile

func NewFile(filePath string) (protoparse.Parser, string, error)

NewFile initializes a proto parser from a local proto file.

func NewHTTP

func NewHTTP(ctx context.Context, fileURL *url.URL) (protoparse.Parser, string, error)

NewHTTP initializes a proto parser from a remote proto file.

Types

type Decoder added in v2.1.0

type Decoder interface {
	Decode([]byte) (string, error)
}

Decoder is the interface that accepts bytes from Proto message and decodes it to a string.

Jump to

Keyboard shortcuts

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