cProto

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Types

type ProtoEnum

type ProtoEnum struct {
	EnumName   string
	EnumFields []*ProtoEnum_Field
}

func ParseEnum

func ParseEnum(protoFile string) (result []*ProtoEnum)

type ProtoEnum_Field

type ProtoEnum_Field struct {
	EnumFieldName  string
	EnumFieldValue string
	EnumFieldDesc  string
}

type ProtoField

type ProtoField struct {
	MessageName string
	FieldName   string
	SourceType  string
	TargetType  string
}

type ProtoService

type ProtoService struct {
	ServiceName string
	ServiceRpc  []*ProtoService_Rpc
}

func ParseService

func ParseService(protoFile string) (result []*ProtoService)

type ProtoService_Rpc

type ProtoService_Rpc struct {
	RpcName     string
	RpcRequest  string
	RpcResponse string
}

type ProtoType

type ProtoType struct {
	MessageName string
	Field       string
	OldType     string
	NewType     string
}

func ParseType

func ParseType(protoFile string) (result []*ProtoType)

Jump to

Keyboard shortcuts

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