service

package
v0.0.0-...-e3fdd94 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdService = &cobra.Command{
	Use:   "service",
	Short: "Generate the proto service implementations",
	Long:  "Generate the proto service implementations. Example: panda-tool proto service api/xxx.proto -target-dir=pkg/service",
	Run:   run,
}

CmdService the service command.

Functions

This section is empty.

Types

type Method

type Method struct {
	Service string
	Name    string
	Request string
	Reply   string

	// type: unary or stream
	Type MethodType
}

Method is a proto method.

type MethodType

type MethodType uint8

type Service

type Service struct {
	Package     string
	Service     string
	Methods     []*Method
	GoogleEmpty bool

	UseIO      bool
	UseContext bool
}

Service is a proto service.

Jump to

Keyboard shortcuts

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