generator

package
v0.0.14-beta Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(gen *protogen.Plugin, cfg Config) (err error)

Types

type Config

type Config struct {
	Marshaller         *string
	Only               *string
	AutoURI            *bool
	BodylessMethodsStr *string
	// contains filtered or unexported fields
}

func (Config) MethodShouldHasBody

func (c Config) MethodShouldHasBody(method string) bool

MethodShouldHasBody checks if method may have a body

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(
	file *protogen.File,
	cfg Config,
	gf *protogen.GeneratedFile,
) Generator

func (*Generator) GenerateClients

func (g *Generator) GenerateClients() (err error)

GenerateClients generates HTTP clients for all services if the file

func (*Generator) GenerateServers

func (g *Generator) GenerateServers(file *protogen.File) (err error)

GenerateServers generates HTTP servers for all services if the file

Jump to

Keyboard shortcuts

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