generator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

SupportedFeatures describes a flag setting for supported features.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Suffix   string
	Template string
}

Generator describes a protoc code generate plugin. It's an implementation of Generator from github.com/pseudomuto/protokit

func (*Generator) Generate

Generate compiles the documentation and generates the CodeGeneratorResponse to send back to protoc. It does this by rendering a template based on the options parsed from the CodeGeneratorRequest.

type Method

type Method struct {
	Name            string
	Comment         string
	Request         string
	Response        string
	ClientStreaming bool
	ServerStreaming bool
}

type ProtoFile

type ProtoFile struct {
	Name     string
	Package  string
	Services []Service
}

type Service

type Service struct {
	Name    string
	Comment string
	Methods []Method
}

Jump to

Keyboard shortcuts

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