genrpc

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateImportedModule

func UpdateImportedModule(filepath, workDir, module string) error

Types

type ImportLines

type ImportLines []string

func (ImportLines) String

func (l ImportLines) String() string

type LogicFile

type LogicFile struct {
	Package          string
	GoPackage        string
	Service          string
	Rpc              string
	Path             string
	DescFilepath     string
	RequestTypeName  string
	ResponseTypeName string
	ClientStream     bool
	ServerStream     bool
}

type PzeroProtoApiMiddleware

type PzeroProtoApiMiddleware struct {
	Name   string
	Routes []string
}

type PzeroRpc

type PzeroRpc struct {
	Module string
}

func (*PzeroRpc) Gen

func (jr *PzeroRpc) Gen(progressChan chan<- progress.Message) (map[string]*rpcparser.Proto, error)

func (*PzeroRpc) GetAllLogicFiles

func (jr *PzeroRpc) GetAllLogicFiles(descFilepath string, protoSpec *rpcparser.Proto) ([]LogicFile, error)

func (*PzeroRpc) GetAllServerFiles

func (jr *PzeroRpc) GetAllServerFiles(descFilepath string, protoSpec *rpcparser.Proto) ([]ServerFile, error)

type RegisterLines

type RegisterLines []string

func (RegisterLines) String

func (l RegisterLines) String() string

type ServerFile

type ServerFile struct {
	DescFilepath string
	Path         string
	Service      string
}

Jump to

Keyboard shortcuts

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