Matthias Andreas Benkard | 832a54e | 2019-01-29 09:27:38 +0100 | [diff] [blame^] | 1 | package swagger |
| 2 | |
| 3 | type SwaggerBuilder struct { |
| 4 | SwaggerService |
| 5 | } |
| 6 | |
| 7 | func NewSwaggerBuilder(config Config) *SwaggerBuilder { |
| 8 | return &SwaggerBuilder{*newSwaggerService(config)} |
| 9 | } |
| 10 | |
| 11 | func (sb SwaggerBuilder) ProduceListing() ResourceListing { |
| 12 | return sb.SwaggerService.produceListing() |
| 13 | } |
| 14 | |
| 15 | func (sb SwaggerBuilder) ProduceAllDeclarations() map[string]ApiDeclaration { |
| 16 | return sb.SwaggerService.produceAllDeclarations() |
| 17 | } |
| 18 | |
| 19 | func (sb SwaggerBuilder) ProduceDeclarations(route string) (*ApiDeclaration, bool) { |
| 20 | return sb.SwaggerService.produceDeclarations(route) |
| 21 | } |