doctransport

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package doctransport observes API registrations and traffic and generates Swagger. Ideally you could use this with unit tests which simulate API traffic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SwaggerTransport

type SwaggerTransport interface {
	resttransport.Transport
	Generate() (*spec.Swagger, error)
}

SwaggerTransport is the interface for a Transport that has Swagger spec generation.

func New

New returns an resttransport middleware that records interactions for documenting.

Jump to

Keyboard shortcuts

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