Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
caddyproxy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
caddyproxy
Commits
464dc2bf
Commit
464dc2bf
authored
Sep 30, 2024
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udpate module
parent
7eeecb16
Pipeline
#806
failed with stages
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
9 deletions
+30
-9
.gitignore
.gitignore
+3
-0
Makefile
Makefile
+18
-0
caddyapi.go
caddy/caddyapi.go
+2
-2
root.go
command/root/root.go
+1
-1
run.go
command/run/run.go
+1
-1
go.mod
go.mod
+1
-1
main.go
main.go
+1
-1
handler.go
openapi/handler.go
+3
-3
No files found.
.gitignore
0 → 100644
View file @
464dc2bf
.idea
.vscode
build
Makefile
0 → 100644
View file @
464dc2bf
.PHONY
:
default caddyproxy
GOBIN
=
$(
shell
pwd
)
/build/bin
GO
?=
latest
GOFILES_NOVENDOR
:=
$(
shell
go list
-f
"{{.Dir}}"
./...
)
default
:
caddyproxy
all
:
caddyproxy
#CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o=${GOBIN}/$@ -gcflags "all=-N -l" .
caddyproxy
:
go build
-o
=
${
GOBIN
}
/
$@
-gcflags
"all=-N -l"
.
@
echo
"Done building."
clean
:
rm
-fr
build/
*
caddy/caddyapi.go
View file @
464dc2bf
...
...
@@ -2,10 +2,10 @@ package caddy
import
(
"bytes"
"caddyproxy/types"
"caddyproxy/utils"
"fmt"
log
"github.com/sirupsen/logrus"
"github.com/xueqianlu/caddyproxy/types"
"github.com/xueqianlu/caddyproxy/utils"
"io/ioutil"
"net/http"
"path/filepath"
...
...
command/root/root.go
View file @
464dc2bf
package
root
import
(
"caddyproxy/command/run"
"fmt"
"github.com/spf13/cobra"
"github.com/xueqianlu/caddyproxy/command/run"
"os"
)
...
...
command/run/run.go
View file @
464dc2bf
package
run
import
(
"caddyproxy/openapi"
log
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/xueqianlu/caddyproxy/openapi"
"os"
)
...
...
go.mod
View file @
464dc2bf
module github.com/caddyproxy
module github.com/
xueqianlu/
caddyproxy
go 1.21
...
...
main.go
View file @
464dc2bf
package
main
import
"caddyproxy/command/root"
import
"
github.com/xueqianlu/
caddyproxy/command/root"
func
main
()
{
root
.
NewRootCommand
()
.
Execute
()
...
...
openapi/handler.go
View file @
464dc2bf
package
openapi
import
(
"caddyproxy/caddy"
"caddyproxy/types"
"caddyproxy/utils"
"github.com/gin-gonic/gin"
"github.com/google/uuid"
log
"github.com/sirupsen/logrus"
"github.com/xueqianlu/caddyproxy/caddy"
"github.com/xueqianlu/caddyproxy/types"
"github.com/xueqianlu/caddyproxy/utils"
"net/http"
"path/filepath"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment