protodoc

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DocTmpl = `` /* 753-byte string literal not displayed */

Functions

func ArrangeIntoPackages

func ArrangeIntoPackages(paths []string, l *logger.Logger) map[string][]string

func BuildFileDescRegistry

func BuildFileDescRegistry(files *protoregistry.Files, protoRoot, pkgPrefix string, l *logger.Logger)

Types

type Formatter

type Formatter struct {
	// contains filtered or unexported fields
}

func (Formatter) WithDepth

func (f Formatter) WithDepth(depth int) Formatter

func (Formatter) WithPrefix

func (f Formatter) WithPrefix(prefix string) Formatter

func (Formatter) WithRelPath added in v1.0.1

func (f Formatter) WithRelPath(relPath string) Formatter

func (Formatter) WithYAML

func (f Formatter) WithYAML(yaml bool, jsonNames bool) Formatter

type Token

type Token struct {
	Prefix  string
	Suffix  template.HTML
	Comment string
	Kind    string
	Text    string
	URL     string
	Default string

	MessageHeader bool

	NoExtraLine bool

	// Filed by token processor
	TextHTML  template.HTML
	Sep       string
	ExtraLine string
	// contains filtered or unexported fields
}

func ProcessTokensForHTML

func ProcessTokensForHTML(toks []*Token, f Formatter) []*Token

Jump to

Keyboard shortcuts

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