Skip to content

Commit eb89939

Browse files
authored
feat(fxhttpserver): Provided module (ankorstore#40)
1 parent 328e53d commit eb89939

35 files changed

+4630
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- "fxgenerate"
3434
- "fxhealthcheck"
3535
- "fxhttpclient"
36+
- "fxhttpserver"
3637
- "fxlog"
3738
- "fxmetrics"
3839
- "fxorm"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "fxhttpserver-ci"
2+
3+
on:
4+
push:
5+
branches:
6+
- "feat**"
7+
- "fix**"
8+
- "hotfix**"
9+
- "chore**"
10+
paths:
11+
- "fxhttpserver/**.go"
12+
- "fxhttpserver/go.mod"
13+
- "fxhttpserver/go.sum"
14+
pull_request:
15+
types:
16+
- opened
17+
- synchronize
18+
- reopened
19+
branches:
20+
- main
21+
paths:
22+
- "fxhttpserver/**.go"
23+
- "fxhttpserver/go.mod"
24+
- "fxhttpserver/go.sum"
25+
26+
jobs:
27+
ci:
28+
uses: ./.github/workflows/common-ci.yml
29+
secrets: inherit
30+
with:
31+
module: "fxhttpserver"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Yokai's `Fx modules` are the plugins for your Yokai application.
2626
| [fxgenerate](fxgenerate) | Fx module for [generate](generate) |
2727
| [fxhealthcheck](fxhealthcheck) | Fx module for [healthcheck](healthcheck) |
2828
| [fxhttpclient](fxhttpclient) | Fx module for [httpclient](httpclient) |
29+
| [fxhttpserver](fxhttpserver) | Fx module for [httpserver](httpserver) |
2930
| [fxlog](fxlog) | Fx module for [log](log) |
3031
| [fxmetrics](fxmetrics) | Fx module for [prometheus](https://github.com/prometheus/client_golang) |
3132
| [fxorm](fxorm) | Fx module for [orm](orm) |

fxhttpserver/.golangci.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
run:
2+
timeout: 5m
3+
concurrency: 8
4+
5+
linters:
6+
enable:
7+
- asasalint
8+
- asciicheck
9+
- bidichk
10+
- bodyclose
11+
- containedctx
12+
- contextcheck
13+
- cyclop
14+
- decorder
15+
- dogsled
16+
- durationcheck
17+
- errcheck
18+
- errchkjson
19+
- errname
20+
- errorlint
21+
- exhaustive
22+
- forbidigo
23+
- forcetypeassert
24+
- gocognit
25+
- goconst
26+
- gocritic
27+
- gocyclo
28+
- godox
29+
- gofmt
30+
- goheader
31+
- gomoddirectives
32+
- gomodguard
33+
- goprintffuncname
34+
- gosec
35+
- gosimple
36+
- govet
37+
- grouper
38+
- importas
39+
- ineffassign
40+
- interfacebloat
41+
- logrlint
42+
- maintidx
43+
- makezero
44+
- misspell
45+
- nilerr
46+
- nilnil
47+
- nlreturn
48+
- nolintlint
49+
- nosprintfhostport
50+
- predeclared
51+
- promlinter
52+
- reassign
53+
- staticcheck
54+
- tenv
55+
- thelper
56+
- tparallel
57+
- typecheck
58+
- unconvert
59+
- unparam
60+
- unused
61+
- usestdlibvars
62+
- whitespace

0 commit comments

Comments
 (0)