internal

package
v0.0.0-...-d9d8297 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClientAPI

func CreateClientAPI(p *protogen.Plugin, f *protogen.File) error

Types

type APIContext

type APIContext struct {
	Services []*Service
	Imports  []Import
	FileName string
}

func NewAPIContext

func NewAPIContext(filename string) APIContext

func (*APIContext) ApplyImports

func (ctx *APIContext) ApplyImports(f *protogen.File)

type Import

type Import struct {
	Path string
}

type Service

type Service struct {
	Name    string
	Package string
	Methods []ServiceMethod
}

type ServiceMethod

type ServiceMethod struct {
	Name       string
	Path       string
	InputArg   string
	InputType  string
	OutputType string
}

Jump to

Keyboard shortcuts

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