protodocs

package module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin(service string, opts ...Option) docshandler.Plugin

Types

type Option

type Option func(*config)

Option is a configuration option for NewPlugin.

func WithAdditionalService

func WithAdditionalService(service string) Option

WithAdditionalService registers an additional service to generate documentation for.

func WithExampleRequests

func WithExampleRequests(method string, request proto.Message, more ...proto.Message) Option

WithExampleRequests registers example requests for a method which can be selected in the debug form of the docs page. The method name should be in the format "service/method", e.g., "greet.GreetService/Greet". Connect users can use the constants for the procedures, e.g., greetconnect.GreetServiceGreetProcedure.

func WithSerializedDescriptors

func WithSerializedDescriptors(serializedDescriptors []byte) Option

WithSerializedDescriptors registers serialized proto descriptors to use for extracting docstrings in documentation.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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