genrpc

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JzeroProtoApiMiddleware

type JzeroProtoApiMiddleware struct {
	Name   string
	Routes []string
}

type JzeroRpc

type JzeroRpc struct {
	Module string

	ProtoFiles          []string
	GenCodeProtoFiles   []string
	ProtoSpecMap        map[string]rpcparser.Proto
	GenCodeProtoSpecMap map[string]rpcparser.Proto
}

func (*JzeroRpc) Gen

func (jr *JzeroRpc) Gen() error

func (*JzeroRpc) GetAllLogicFiles

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

func (*JzeroRpc) GetAllServerFiles

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

type LogicFile added in v0.32.0

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

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