
godep restore pushd $GOPATH/src/github.com/appc/spec git co master popd go get go4.org/errorutil rm -rf Godeps godep save ./... git add vendor git add -f $(git ls-files --other vendor/) git co -- Godeps/LICENSES Godeps/.license_file_state Godeps/OWNERS
22 lines
554 B
Go
22 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)
|
|
}
|