defs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtobufPackage     = "Lcom/google/protobuf/"
	ProtobufFieldNumber = "_FIELD_NUMBER"
)

Variables

View Source
var (
	JavaDefaultTypes = map[string]string{
		"I":                  "int32",
		"J":                  "int64",
		"F":                  "float",
		"D":                  "double",
		"B":                  "byte",
		"Z":                  "bool",
		"Ljava/lang/String;": "string",
	}
)

Functions

func BytesMutator

func BytesMutator(field *ProtoField) bool

func IntListMutator

func IntListMutator(field *ProtoField) bool

func ListMutator

func ListMutator(field *ProtoField) bool

Types

type Mutator

type Mutator struct {
	MethodName string
	Mutator    MutatorFunc
}

func NewMutatorList

func NewMutatorList() []Mutator

type MutatorFunc

type MutatorFunc func(field *ProtoField) bool

type ProtoEnum

type ProtoEnum struct {
}

type ProtoField

type ProtoField struct {
	Name      string
	Index     int
	Type      string
	Qualifier string
}

type ProtoMessage

type ProtoMessage struct {
	Name        string
	IsGlobal    bool
	Fields      []*ProtoField
	OneOfs      []*ProtoOneof
	SubMessages []*ProtoMessage
	Enums       []ProtoEnum
}

type ProtoOneof

type ProtoOneof struct {
	Name   string
	Fields []*ProtoField
}

type ProtoPackage

type ProtoPackage struct {
	FileName      string
	PackageName   string
	GoPackageName string
	Messages      map[string]*ProtoMessage
	Enums         []ProtoEnum
	Imports       []string
}

Jump to

Keyboard shortcuts

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