sdl

package
v2.0.0-...-f116a61 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdServer = &cobra.Command{
	Use:   "sdl",
	Short: "Generate the proto Server implementations",
	Long:  "Generate the proto Server implementations. Example: kratos proto types api/xxx.proto -target-dir=internal/service",
	Run:   run,
}

CmdServer the service command.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name     string
	Type     string
	Repeated bool
	Required bool
}

type FieldMode

type FieldMode string

type Message

type Message struct {
	Name   string
	Fields []*Field
}

type Method

type Method struct {
	Name    string
	Request string
	Reply   string
}

Method is a proto method.

type MethodMode

type MethodMode string

type Msg

type Msg struct {
	Source              string
	Module              string
	MutationMethods     []*Method
	QueryMethods        []*Method
	SubscriptionMethods []*Method
	InputMessage        []*Message
	OutputMessage       []*Message
}

Jump to

Keyboard shortcuts

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