1 // Package api 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": "Problem as defined in https://tools.ietf.org/html/rfc7807",
58 "$ref": "#/definitions/ErrorInfo"
63 "description": "application/problem+json"
72 "description": "Get the status of the producer. Will show if the producer has registered in ICS.",
77 "Data producer (callbacks)"
79 "summary": "Get status",
84 "$ref": "#/definitions/"
92 "description": "Callback for ICS to add an info job",
97 "Data producer (callbacks)"
99 "summary": "Add info job",
102 "description": "Info job data",
107 "$ref": "#/definitions/JobInfo"
116 "description": "Problem as defined in https://tools.ietf.org/html/rfc7807",
118 "$ref": "#/definitions/ErrorInfo"
123 "description": "application/problem+json"
130 "/info_job/{infoJobId}": {
132 "description": "Callback for ICS to delete an info job",
134 "Data producer (callbacks)"
136 "summary": "Delete info job",
140 "description": "Info job ID",
155 "description": "Get the Swagger API documentation for the producer.",
159 "summary": "Get Swagger Documentation",
172 "registeredStatus": {
173 "description": "The registration status of the producer in Information Coordinator Service. Either ` + "`" + `registered` + "`" + ` or ` + "`" + `not registered` + "`" + `",
175 "example": "registered"
185 "maxTimeMiliseconds": {
194 "description": "A human-readable explanation specific to this occurrence of the problem.",
196 "example": "Info job type not found"
199 "description": "A URI reference that identifies the specific occurrence of the problem.",
203 "description": "The HTTP status code generated by the origin server for this occurrence of the problem.",
208 "description": "A short, human-readable summary of the problem type.",
212 "description": "A URI reference that identifies the problem type.",
221 "$ref": "#/definitions/Parameters"
223 "info_job_identity": {
226 "info_type_identity": {
244 "$ref": "#/definitions/BufferTimeout"
251 type swaggerInfo struct {
260 // SwaggerInfo holds exported Swagger Info so clients can modify it
261 var SwaggerInfo = swaggerInfo{
266 Title: "DMaaP Mediator Producer",
272 func (s *s) ReadDoc() string {
274 sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
276 t, err := template.New("swagger_info").Funcs(template.FuncMap{
277 "marshal": func(v interface{}) string {
278 a, _ := json.Marshal(v)
281 "escape": func(v interface{}) string {
283 str := strings.Replace(v.(string), "\t", "\\t", -1)
284 // replace " with \", and if that results in \\", replace that with \\\"
285 str = strings.Replace(str, "\"", "\\\"", -1)
286 return strings.Replace(str, "\\\\\"", "\\\\\\\"", -1)
294 if err := t.Execute(&tpl, sInfo); err != nil {
302 swag.Register("swagger", &s{})