Documentation
¶
Overview ¶
Migrated from https://github.com/kralicky/ragu/tree/main/pkg/plugins/python
This package is a pure-go implementation of a subset of features from python-betterproto (https://github.com/danielgtaylor/python-betterproto). Most of the logic here is translated directly from the original python code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Generator = generator{}
Functions ¶
This section is empty.
Types ¶
type Method ¶
type Method struct {
PyInputMessageParam string `json:"py_input_message_param"`
Comment string `json:"comment"`
PyOutputMessageType string `json:"py_output_message_type"`
PyInputMessageType string `json:"py_input_message_type"`
PyName string `json:"py_name"`
Route string `json:"route"`
PyInputMessage string `json:"py_input_message"`
ServerStreaming bool `json:"server_streaming"`
ClientStreaming bool `json:"client_streaming"`
}
type Model ¶
type Model struct {
OutputFile *OutputFile `json:"output_file"`
}
type OutputFile ¶
type OutputFile struct {
InputFilenames []string `json:"input_filenames"`
Imports []string `json:"imports"`
DatetimeImports []string `json:"datetime_imports"`
PythonModuleImports []string `json:"python_module_imports"`
ImportsTypeCheckingOnly []string `json:"imports_type_checking_only"`
TypingImports []string `json:"typing_imports"`
Enums []Enum `json:"enums"`
Messages []Message `json:"messages"`
Services []Service `json:"services"`
}
Click to show internal directories.
Click to hide internal directories.