Skip to content

Commit

Permalink
refactor: restructure project layout
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Braun <rainbowstack@gmail.com>
  • Loading branch information
bluebrown committed Jan 20, 2024
1 parent 39e80ff commit 78d04e1
Show file tree
Hide file tree
Showing 42 changed files with 298 additions and 305 deletions.
40 changes: 20 additions & 20 deletions api/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const docTemplate = `{
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/store.Channel"
"$ref": "#/definitions/model.Channel"
}
}
},
Expand Down Expand Up @@ -68,7 +68,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/store.Channel"
"$ref": "#/definitions/model.Channel"
}
},
"default": {
Expand All @@ -95,7 +95,7 @@ const docTemplate = `{
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/store.Decoder"
"$ref": "#/definitions/model.Decoder"
}
}
},
Expand Down Expand Up @@ -130,7 +130,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/store.Decoder"
"$ref": "#/definitions/model.Decoder"
}
},
"default": {
Expand All @@ -157,7 +157,7 @@ const docTemplate = `{
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/store.PipelineListItem"
"$ref": "#/definitions/model.PipelineListItem"
}
}
},
Expand Down Expand Up @@ -192,7 +192,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/store.PipelineListItem"
"$ref": "#/definitions/model.PipelineListItem"
}
},
"default": {
Expand Down Expand Up @@ -246,7 +246,7 @@ const docTemplate = `{
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/store.PipelineRunListRow"
"$ref": "#/definitions/model.PipelineRunListRow"
}
}
},
Expand Down Expand Up @@ -274,7 +274,7 @@ const docTemplate = `{
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/store.PostHook"
"$ref": "#/definitions/model.PostHook"
}
}
},
Expand Down Expand Up @@ -309,7 +309,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/store.PostHook"
"$ref": "#/definitions/model.PostHook"
}
},
"default": {
Expand Down Expand Up @@ -356,7 +356,7 @@ const docTemplate = `{
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/store.Run"
"$ref": "#/definitions/model.Run"
}
}
},
Expand Down Expand Up @@ -391,7 +391,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/store.Run"
"$ref": "#/definitions/model.Run"
}
},
"default": {
Expand Down Expand Up @@ -438,7 +438,7 @@ const docTemplate = `{
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/store.Task"
"$ref": "#/definitions/model.Task"
}
}
},
Expand Down Expand Up @@ -473,7 +473,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/store.Task"
"$ref": "#/definitions/model.Task"
}
},
"default": {
Expand Down Expand Up @@ -512,7 +512,7 @@ const docTemplate = `{
}
}
},
"store.Channel": {
"model.Channel": {
"type": "object",
"properties": {
"decoder_name": {
Expand All @@ -523,7 +523,7 @@ const docTemplate = `{
}
}
},
"store.Decoder": {
"model.Decoder": {
"type": "object",
"properties": {
"name": {
Expand All @@ -537,7 +537,7 @@ const docTemplate = `{
}
}
},
"store.PipelineListItem": {
"model.PipelineListItem": {
"type": "object",
"properties": {
"channels": {
Expand All @@ -560,7 +560,7 @@ const docTemplate = `{
}
}
},
"store.PipelineRunListRow": {
"model.PipelineRunListRow": {
"type": "object",
"properties": {
"dest_branch": {
Expand Down Expand Up @@ -597,7 +597,7 @@ const docTemplate = `{
}
}
},
"store.PostHook": {
"model.PostHook": {
"type": "object",
"properties": {
"name": {
Expand All @@ -611,7 +611,7 @@ const docTemplate = `{
}
}
},
"store.Run": {
"model.Run": {
"type": "object",
"properties": {
"dest_branch": {
Expand Down Expand Up @@ -645,7 +645,7 @@ const docTemplate = `{
}
}
},
"store.Task": {
"model.Task": {
"type": "object",
"properties": {
"dest_branch": {
Expand Down
40 changes: 20 additions & 20 deletions api/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/store.Channel"
"$ref": "#/definitions/model.Channel"
}
}
},
Expand Down Expand Up @@ -57,7 +57,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/store.Channel"
"$ref": "#/definitions/model.Channel"
}
},
"default": {
Expand All @@ -84,7 +84,7 @@
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/store.Decoder"
"$ref": "#/definitions/model.Decoder"
}
}
},
Expand Down Expand Up @@ -119,7 +119,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/store.Decoder"
"$ref": "#/definitions/model.Decoder"
}
},
"default": {
Expand All @@ -146,7 +146,7 @@
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/store.PipelineListItem"
"$ref": "#/definitions/model.PipelineListItem"
}
}
},
Expand Down Expand Up @@ -181,7 +181,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/store.PipelineListItem"
"$ref": "#/definitions/model.PipelineListItem"
}
},
"default": {
Expand Down Expand Up @@ -235,7 +235,7 @@
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/store.PipelineRunListRow"
"$ref": "#/definitions/model.PipelineRunListRow"
}
}
},
Expand Down Expand Up @@ -263,7 +263,7 @@
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/store.PostHook"
"$ref": "#/definitions/model.PostHook"
}
}
},
Expand Down Expand Up @@ -298,7 +298,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/store.PostHook"
"$ref": "#/definitions/model.PostHook"
}
},
"default": {
Expand Down Expand Up @@ -345,7 +345,7 @@
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/store.Run"
"$ref": "#/definitions/model.Run"
}
}
},
Expand Down Expand Up @@ -380,7 +380,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/store.Run"
"$ref": "#/definitions/model.Run"
}
},
"default": {
Expand Down Expand Up @@ -427,7 +427,7 @@
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/store.Task"
"$ref": "#/definitions/model.Task"
}
}
},
Expand Down Expand Up @@ -462,7 +462,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/store.Task"
"$ref": "#/definitions/model.Task"
}
},
"default": {
Expand Down Expand Up @@ -501,7 +501,7 @@
}
}
},
"store.Channel": {
"model.Channel": {
"type": "object",
"properties": {
"decoder_name": {
Expand All @@ -512,7 +512,7 @@
}
}
},
"store.Decoder": {
"model.Decoder": {
"type": "object",
"properties": {
"name": {
Expand All @@ -526,7 +526,7 @@
}
}
},
"store.PipelineListItem": {
"model.PipelineListItem": {
"type": "object",
"properties": {
"channels": {
Expand All @@ -549,7 +549,7 @@
}
}
},
"store.PipelineRunListRow": {
"model.PipelineRunListRow": {
"type": "object",
"properties": {
"dest_branch": {
Expand Down Expand Up @@ -586,7 +586,7 @@
}
}
},
"store.PostHook": {
"model.PostHook": {
"type": "object",
"properties": {
"name": {
Expand All @@ -600,7 +600,7 @@
}
}
},
"store.Run": {
"model.Run": {
"type": "object",
"properties": {
"dest_branch": {
Expand Down Expand Up @@ -634,7 +634,7 @@
}
}
},
"store.Task": {
"model.Task": {
"type": "object",
"properties": {
"dest_branch": {
Expand Down
Loading

0 comments on commit 78d04e1

Please sign in to comment.