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 ¶
func New(inner resttransport.Transport) SwaggerTransport
New returns an resttransport middleware that records interactions for documenting.
Click to show internal directories.
Click to hide internal directories.