proto2api

package
v1.6.27 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: GPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VarStringProtoPath string
	VarStringModelName string
	VarStringApiPath   string
	VarBoolMultiple    bool
	VarStringGroupName string
	VarStringJsonStyle string
)

Functions

func DoGen

func DoGen(g *GenContext) error

func FindServiceContentIndex

func FindServiceContentIndex(data string) int

func FindTypeContentIndex

func FindTypeContentIndex(data string) int

func Gen

func Gen(_ *cobra.Command, _ []string) error

func SkipBaseMessage

func SkipBaseMessage(messageName string) bool

func SkipRpcName

func SkipRpcName(rpcName, modelName string) bool

SkipRpcName returns true when the rpc should be skipped

Types

type GenContext

type GenContext struct {
	ProtoPath string
	ModelName string
	ApiPath   string
	Multiple  bool
	GroupName string
	JsonStyle string
}

Jump to

Keyboard shortcuts

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