123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322 |
- // Package docs Code generated by swaggo/swag. DO NOT EDIT
- package docs
- import "github.com/swaggo/swag"
- const docTemplate = `{
- "schemes": {{ marshal .Schemes }},
- "swagger": "2.0",
- "info": {
- "description": "{{escape .Description}}",
- "title": "{{.Title}}",
- "contact": {},
- "version": "{{.Version}}"
- },
- "host": "{{.Host}}",
- "basePath": "{{.BasePath}}",
- "paths": {
- "/exist": {
- "get": {
- "description": "get ip if id exist",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "Safeline"
- ],
- "summary": "get ip if id exist",
- "parameters": [
- {
- "type": "string",
- "description": "id",
- "name": "id",
- "in": "query",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/repos/discussions": {
- "get": {
- "description": "get discussions from GitHub",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "GitHub"
- ],
- "summary": "get discussions",
- "parameters": [
- {
- "type": "string",
- "description": "search by",
- "name": "q",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/service.Discussion"
- }
- }
- }
- }
- }
- },
- "/repos/info": {
- "get": {
- "description": "get repo info from GitHub",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "GitHub"
- ],
- "summary": "get repo info",
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "$ref": "#/definitions/service.Repo"
- }
- }
- }
- }
- },
- "/repos/issues": {
- "get": {
- "description": "get issues from GitHub",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "GitHub"
- ],
- "summary": "get issues",
- "parameters": [
- {
- "type": "string",
- "description": "search by",
- "name": "q",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/service.Issue"
- }
- }
- }
- }
- }
- },
- "/safeline/count": {
- "get": {
- "description": "get installer count",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "Safeline"
- ],
- "summary": "get installer count",
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "$ref": "#/definitions/service.InstallerCount"
- }
- }
- }
- }
- }
- },
- "definitions": {
- "service.Category": {
- "type": "object",
- "properties": {
- "emoji": {
- "type": "string"
- },
- "emoji_html": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- },
- "service.Discussion": {
- "type": "object",
- "properties": {
- "author": {
- "$ref": "#/definitions/service.User"
- },
- "category": {
- "$ref": "#/definitions/service.Category"
- },
- "comment_count": {
- "type": "integer"
- },
- "comment_users": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/service.User"
- }
- },
- "created_at": {
- "type": "integer"
- },
- "id": {
- "type": "string"
- },
- "is_answered": {
- "type": "boolean"
- },
- "labels": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/service.Label"
- }
- },
- "thumbs_up": {
- "type": "integer"
- },
- "title": {
- "type": "string"
- },
- "upvote_count": {
- "type": "integer"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "service.InstallerCount": {
- "type": "object",
- "properties": {
- "total": {
- "type": "integer"
- }
- }
- },
- "service.Issue": {
- "type": "object",
- "properties": {
- "author": {
- "$ref": "#/definitions/service.User"
- },
- "comment_count": {
- "type": "integer"
- },
- "created_at": {
- "type": "integer"
- },
- "id": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/service.Label"
- }
- },
- "thumbs_up": {
- "type": "integer"
- },
- "title": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "service.Label": {
- "type": "object",
- "properties": {
- "color": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- },
- "service.Repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "star_count": {
- "type": "integer"
- }
- }
- },
- "service.User": {
- "type": "object",
- "properties": {
- "avatar_url": {
- "type": "string"
- },
- "login": {
- "type": "string"
- }
- }
- }
- }
- }`
- // SwaggerInfo holds exported Swagger Info so clients can modify it
- var SwaggerInfo = &swag.Spec{
- Version: "",
- Host: "",
- BasePath: "",
- Schemes: []string{},
- Title: "",
- Description: "",
- InfoInstanceName: "swagger",
- SwaggerTemplate: docTemplate,
- LeftDelim: "{{",
- RightDelim: "}}",
- }
- func init() {
- swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
- }
|