Documentation
¶
Overview ¶
Copyright 2017 Matt Ho
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2017 Matt Ho ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func ColonPath(path string) string
- func New(options ...Option) *swagger.API
- type Builder
- type Option
- func BasePath(v string) Option
- func ContactEmail(v string) Option
- func Description(v string) Option
- func Endpoints(endpoints ...*swagger.Endpoint) Option
- func Host(v string) Option
- func License(name, url string) Option
- func Schemes(v ...string) Option
- func Security(scheme string, scopes ...string) Option
- func SecurityScheme(name string, options ...swagger.SecuritySchemeOption) Option
- func Tag(name, description string, options ...TagOption) Option
- func TermsOfService(v string) Option
- func Title(v string) Option
- func Version(v string) Option
- type TagOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(builder *Builder)
Option provides configuration options to the swagger api builder
func SecurityScheme ¶
func SecurityScheme(name string, options ...swagger.SecuritySchemeOption) Option
SecurityScheme creates a new security definition for the API.
type TagOption ¶
TagOption provides additional customizations to the #Tag option
func TagDescription ¶
TagDescription sets externalDocs.description on the tag field