makedt

package
v0.0.0-...-8353322 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Makedt is a package for exposing the creation of a doctree structure.

It lives in its own package because it must use several other packages which make use of doctree to create a doctree, so to prevent circular imports, it must be its own package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindServiceFile

func FindServiceFile(req *plugin.CodeGeneratorRequest) string

Searches through the files in the request and returns the path to the first one which contains a service declaration. If no file in the request contains a service, returns an empty string.

func New

func New(req *plugin.CodeGeneratorRequest, serviceFile io.Reader) (doctree.Doctree, error)

New accepts a Protobuf plugin.CodeGeneratorRequest and the contents of the file containing the service declaration and returns a Doctree struct

func NewEnum

NewEnum returns a *doctree.ProtoEnum created from a *descriptor.EnumDescriptorProto

func NewFile

Build a new doctree.File struct

func NewMessage

NewMessage returns a *doctree.ProtoMessage created from a *descriptor.DescriptorProto

func NewService

NewService creates a new *doctree.ProtoService from a descriptor.ServiceDescriptorProto. Additionally requires being passed the current *doctree.ProtoFile being defined and a reference to the current *doctree.MicroserviceDefinition being defined; this access is necessary so that the RequestType and ResponseType fields of each of the methods of this service may be set as references to the correct ProtoMessages

Types

This section is empty.

Directories

Path Synopsis
Package google_api is a generated protocol buffer package.
Package google_api is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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