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
    }

    Source Files