parser_protobuf3

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MulanPSL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParserName = "protobuf3"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	Config *ParserConfig

	ProtoOptions *ProtoOptions
}

func NewParser

func NewParser() (*Parser, error)

func (*Parser) Make

func (p *Parser) Make() (definition.Parser, error)

func (*Parser) Name

func (p *Parser) Name() string

func (*Parser) Parse

func (p *Parser) Parse(ctx *definition.Context) error

type ParserConfig

type ParserConfig struct {
	Ext []string `yaml:"ext,omitempty"`

	ImportPath []string `yaml:"importPath,omitempty"`
}

func (*ParserConfig) Name

func (*ParserConfig) Name() string

func (*ParserConfig) ToDefault

func (*ParserConfig) ToDefault(cfg config.IConfigDefault)

type ProtoOption

type ProtoOption struct {
	Name   string
	Number int32
}

type ProtoOptions

type ProtoOptions struct {
	Messages map[string]*ProtoOption

	Fields map[string]*ProtoOption

	OneOfs map[string]*ProtoOption
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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