bf51655a7b
Signed-off-by: Jacek J. Łakis <jacek.lakis@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
21 lines
554 B
Go
21 lines
554 B
Go
package swagger
|
|
|
|
type SwaggerBuilder struct {
|
|
SwaggerService
|
|
}
|
|
|
|
func NewSwaggerBuilder(config Config) *SwaggerBuilder {
|
|
return &SwaggerBuilder{*newSwaggerService(config)}
|
|
}
|
|
|
|
func (sb SwaggerBuilder) ProduceListing() ResourceListing {
|
|
return sb.SwaggerService.produceListing()
|
|
}
|
|
|
|
func (sb SwaggerBuilder) ProduceAllDeclarations() map[string]ApiDeclaration {
|
|
return sb.SwaggerService.produceAllDeclarations()
|
|
}
|
|
|
|
func (sb SwaggerBuilder) ProduceDeclarations(route string) (*ApiDeclaration, bool) {
|
|
return sb.SwaggerService.produceDeclarations(route)
|
|
}
|