pbgo

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: BSD-3-Clause Imports: 12 Imported by: 1

Documentation

Overview

Package pbgo outputs pbgo service descriptions in Go code. It runs as a plugin for the Go protocol buffer compiler plugin. It is linked in to protoc-gen-go.

Index

Constants

View Source
const PluginName = "pbgo"

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceMethodSpec

type ServiceMethodSpec struct {
	MethodName    string
	MethodRawName string

	InputTypeName  string
	OutputTypeName string

	RestAPIs []ServiceRestMethodSpec
}

type ServiceRestMethodSpec

type ServiceRestMethodSpec struct {
	Method       string
	Url          string
	ContentType  string
	ContentBody  string
	CustomHeader string
	RequestBody  string
	HasPathParam bool
}

type ServiceSpec

type ServiceSpec struct {
	ServiceName    string
	ServiceRawName string

	MethodList []ServiceMethodSpec
}

Jump to

Keyboard shortcuts

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