Documentation ¶
Overview ¶
Package gendoc is a truss plugin to generate markdown documentation for a protobuf definition file.
Index ¶
- func GenerateDocs(dt deftree.Deftree) map[string]io.Reader
- func MdEnum(e *deftree.ProtoEnum, depth int) string
- func MdFile(f *deftree.ProtoFile, depth int) string
- func MdHTTPBinding(b *deftree.MethodHttpBinding, depth int) string
- func MdMessage(m *deftree.ProtoMessage, depth int) string
- func MdMethod(m *deftree.ServiceMethod, depth int) string
- func MdMicroserviceDefinition(m *deftree.MicroserviceDefinition, depth int) string
- func MdService(s *deftree.ProtoService, depth int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDocs ¶
GenerateDocs accepts a deftree that represents an ast of a group of protofiles and returns map[string]io.Reader that represents a relative filestructure of generated docs
func MdHTTPBinding ¶
func MdHTTPBinding(b *deftree.MethodHttpBinding, depth int) string
func MdMicroserviceDefinition ¶
func MdMicroserviceDefinition(m *deftree.MicroserviceDefinition, depth int) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.