1 // Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
2 // This file was generated by swaggo/swag
11 "github.com/swaggo/swag"
15 "schemes": {{ marshal .Schemes }},
18 "description": "{{escape .Description}}",
19 "title": "{{.Title}}",
23 "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
25 "version": "{{.Version}}"
28 "basePath": "{{.BasePath}}",
32 "description": "Set the log level of the producer.",
36 "summary": "Set log level",
46 "description": "string enums",
56 "description": "Bad Request",
66 "description": "Get the status of the producer. Will show if the producer has registered in ICS.",
68 "Data producer (callbacks)"
70 "summary": "Get status",
80 "description": "Callback for ICS to add an info job",
85 "Data producer (callbacks)"
87 "summary": "Add info job",
90 "description": "Info job data",
95 "$ref": "#/definitions/jobs.JobInfo"
104 "description": "Bad Request",
112 "/info_job/{infoJobId}": {
114 "description": "Callback for ICS to delete an info job",
116 "Data producer (callbacks)"
118 "summary": "Delete info job",
122 "description": "Info job ID",
137 "description": "Get the Swagger API documentation for the producer.",
141 "summary": "Get Swagger Documentation",
151 "jobs.BufferTimeout": {
157 "maxTimeMiliseconds": {
166 "$ref": "#/definitions/jobs.Parameters"
168 "info_job_identity": {
171 "info_type_identity": {
189 "$ref": "#/definitions/jobs.BufferTimeout"
196 type swaggerInfo struct {
205 // SwaggerInfo holds exported Swagger Info so clients can modify it
206 var SwaggerInfo = swaggerInfo{
211 Title: "DMaaP Mediator Producer",
217 func (s *s) ReadDoc() string {
219 sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
221 t, err := template.New("swagger_info").Funcs(template.FuncMap{
222 "marshal": func(v interface{}) string {
223 a, _ := json.Marshal(v)
226 "escape": func(v interface{}) string {
228 str := strings.Replace(v.(string), "\t", "\\t", -1)
229 // replace " with \", and if that results in \\", replace that with \\\"
230 str = strings.Replace(str, "\"", "\\\"", -1)
231 return strings.Replace(str, "\\\\\"", "\\\\\\\"", -1)
239 if err := t.Execute(&tpl, sInfo); err != nil {
247 swag.Register("swagger", &s{})