Compare commits

...

41 commits

Author SHA1 Message Date
WJQSERVER
e77fcb10d3
Merge pull request #43 from infinite-iroha/dev
add testflow
2025-07-24 16:41:14 +08:00
WJQSERVER
5e74fa011e
Merge pull request #42 from infinite-iroha/license-compliance
add MPL 2.0 license headers to all go files
2025-07-24 16:40:46 +08:00
wjqserver
de4bbe7959 add testflow 2025-07-24 16:39:48 +08:00
WJQSERVER
507e2f3813
Merge pull request #41 from infinite-iroha/dev
Dev
2025-07-24 16:09:09 +08:00
google-labs-jules[bot]
504089b748 feat: add MPL 2.0 license headers to all go files 2025-07-24 08:07:38 +00:00
wjqserver
5bb58ee6d3 add tree test 2025-07-24 15:39:17 +08:00
WJQSERVER
e10c20c5d6
Merge pull request #40 from infinite-iroha/dev
add Text
2025-07-18 15:30:20 +08:00
WJQSERVER
583609945e
Merge pull request #38 from infinite-iroha/dependabot/go_modules/github.com/WJQSERVER-STUDIO/httpc-0.8.1
Bump github.com/WJQSERVER-STUDIO/httpc from 0.8.0 to 0.8.1
2025-07-17 19:14:53 +08:00
WJQSERVER
18e7b203ec
Merge pull request #39 from infinite-iroha/dev
update deps
2025-07-17 19:14:16 +08:00
dependabot[bot]
e75619fc7a
Bump github.com/WJQSERVER-STUDIO/httpc from 0.8.0 to 0.8.1
Bumps [github.com/WJQSERVER-STUDIO/httpc](https://github.com/WJQSERVER-STUDIO/httpc) from 0.8.0 to 0.8.1.
- [Commits](https://github.com/WJQSERVER-STUDIO/httpc/compare/v0.8.0...v0.8.1)

---
updated-dependencies:
- dependency-name: github.com/WJQSERVER-STUDIO/httpc
  dependency-version: 0.8.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-17 01:13:22 +00:00
WJQSERVER
a6171241ce
Merge pull request #37 from infinite-iroha/dev
refactor(internal break) Enhance static file serving for modularity a…
2025-07-09 03:20:31 +08:00
WJQSERVER
5d2ab04b6b
Merge pull request #36 from infinite-iroha/dev
add maxBytesReader & ctxMerge
2025-07-09 02:59:11 +08:00
WJQSERVER
780e640253
Merge pull request #35 from infinite-iroha/dev
update deps & use copyb high perfromance pool & switch to stream json…
2025-07-06 18:10:21 +08:00
WJQSERVER
7084f6d004
Merge pull request #33 from infinite-iroha/dev
Update README.md for add DeepWiki badge
2025-06-28 00:57:07 +08:00
WJQSERVER
87fc425dc4
Merge pull request #32 from infinite-iroha/dev
0.2.8
2025-06-25 17:50:00 +08:00
WJQSERVER
6c96e189d3
Merge pull request #30 from infinite-iroha/dev
add slash settings && StaticFS
2025-06-22 18:11:14 +08:00
WJQSERVER
7733dc80cd
Merge pull request #25 from infinite-iroha/dev
update middlewareX
2025-06-18 08:55:27 +08:00
WJQSERVER
b941523186
Merge pull request #24 from infinite-iroha/dev
use new resolveRoutePath replace path.Join && add UseIf
2025-06-17 14:43:10 +08:00
WJQSERVER
229d15d405
Merge pull request #23 from infinite-iroha/dev
[context] add SetHeaders
2025-06-14 17:58:51 +08:00
WJQSERVER
556e23c1a4
Merge pull request #22 from infinite-iroha/dev
fix default errorhandle
2025-06-13 17:54:00 +08:00
WJQSERVER
362ae16640
Merge pull request #21 from infinite-iroha/dev
update serve && add custom srv configure
2025-06-12 09:49:11 +08:00
WJQSERVER
fa8f044b81
Merge pull request #19 from infinite-iroha/dev
update methods
2025-06-11 11:43:34 +08:00
WJQSERVER
37917363e2
Merge pull request #18 from infinite-iroha/dev
update deps
2025-06-10 21:54:22 +08:00
WJQSERVER
76bf441ce8
Merge pull request #17 from infinite-iroha/dev
0.2.0
2025-06-10 21:42:57 +08:00
WJQSERVER
6fd5e84f6d
Merge pull request #16 from infinite-iroha/dev
remove ws, move to github.com/fenthope/ws
2025-06-09 23:34:34 +08:00
WJQSERVER
d5eb1406ae
Merge pull request #15 from infinite-iroha/dev
update Readme
2025-06-08 04:34:35 +08:00
WJQSERVER
0649a05f72
Create dependabot.yml 2025-06-07 23:08:27 +08:00
WJQSERVER
8eeba0df72
Merge pull request #14 from infinite-iroha/dev
0.1.0
2025-06-06 23:28:27 +08:00
WJQSERVER
da5d165de3
update readme typo 2025-06-06 10:15:19 +08:00
WJQSERVER
c46cf7bd03
Merge pull request #13 from infinite-iroha/dev
fix hijack
2025-06-06 01:32:05 +08:00
WJQSERVER
9c2c078f66
Merge pull request #12 from infinite-iroha/dev
fix NoRoutes
2025-06-05 20:48:02 +08:00
WJQSERVER
41af56ebcf
Merge pull request #11 from infinite-iroha/dev
[engine] add NoRoutes
2025-06-05 20:40:06 +08:00
WJQSERVER
677a7f037f
Merge pull request #9 from infinite-iroha/dev
add testutil
2025-06-05 19:15:04 +08:00
WJQSERVER
f1ff1f935f
Merge pull request #8 from infinite-iroha/dev
[engine] add StaticFile && [context] Add Cookie Method, port from gin
2025-06-05 19:03:50 +08:00
WJQSERVER
b1988305bb
Merge pull request #7 from infinite-iroha/dev
ctx add logreco method
2025-06-04 21:31:48 +08:00
WJQSERVER
46fd5c7852
Merge pull request #6 from infinite-iroha/dev
add engine logger
2025-06-04 20:52:57 +08:00
WJQSERVER
52cc857d00
Merge pull request #5 from infinite-iroha/dev
add GetProtocol
2025-06-02 04:49:02 +08:00
WJQSERVER
7f32c15b4b
Merge pull request #4 from infinite-iroha/dev
0.0.4
2025-05-30 21:43:57 +08:00
WJQSERVER
4f83f0ee6a
Merge pull request #3 from infinite-iroha/dev
add Raw & GetReqBodyFull
2025-05-30 16:57:36 +08:00
WJQSERVER
f2c855966b
Merge pull request #2 from infinite-iroha/dev
0.0.2
2025-05-29 21:48:32 +08:00
WJQSERVER
3acf69e387
Merge pull request #1 from infinite-iroha/dev
init(v0.0.1)
2025-05-28 18:30:31 +08:00
19 changed files with 1145 additions and 2 deletions

11
.github/dependabot.yml vendored Normal file
View file

@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"

24
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: Go Test
on:
push:
tags:
- '*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Run tests
run: go test -v ./...
- name: Run tests race
run: go test -race -v ./...

View file

@ -1,4 +1,7 @@
// 文件: touka/adapter.go
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Copyright 2024 WJQSERVER. All rights reserved.
// All rights reserved by WJQSERVER, related rights can be exercised by the infinite-iroha organization.
package touka
import (

View file

@ -1,3 +1,7 @@
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Copyright 2024 WJQSERVER. All rights reserved.
// All rights reserved by WJQSERVER, related rights can be exercised by the infinite-iroha organization.
package touka
import (

4
ecw.go
View file

@ -1,3 +1,7 @@
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Copyright 2024 WJQSERVER. All rights reserved.
// All rights reserved by WJQSERVER, related rights can be exercised by the infinite-iroha organization.
package touka
import (

View file

@ -1,3 +1,7 @@
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Copyright 2024 WJQSERVER. All rights reserved.
// All rights reserved by WJQSERVER, related rights can be exercised by the infinite-iroha organization.
package touka
import (

View file

@ -1,3 +1,7 @@
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Copyright 2024 WJQSERVER. All rights reserved.
// All rights reserved by WJQSERVER, related rights can be exercised by the infinite-iroha organization.
package touka
import (

View file

@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2013, Julien Schmidt
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View file

@ -1,3 +1,7 @@
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Copyright 2024 WJQSERVER. All rights reserved.
// All rights reserved by WJQSERVER, related rights can be exercised by the infinite-iroha organization.
package touka
import (

View file

@ -1,3 +1,7 @@
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Copyright 2024 WJQSERVER. All rights reserved.
// All rights reserved by WJQSERVER, related rights can be exercised by the infinite-iroha organization.
package touka
import (

View file

@ -1,3 +1,7 @@
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Copyright 2024 WJQSERVER. All rights reserved.
// All rights reserved by WJQSERVER, related rights can be exercised by the infinite-iroha organization.
package touka
import (

View file

@ -1,3 +1,7 @@
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Copyright 2024 WJQSERVER. All rights reserved.
// All rights reserved by WJQSERVER, related rights can be exercised by the infinite-iroha organization.
package touka
type MiddlewareXFunc func() HandlerFunc

View file

@ -1,3 +1,7 @@
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Copyright 2024 WJQSERVER. All rights reserved.
// All rights reserved by WJQSERVER, related rights can be exercised by the infinite-iroha organization.
package touka
import (

View file

@ -1,4 +1,7 @@
// 文件: touka/recovery.go
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Copyright 2024 WJQSERVER. All rights reserved.
// All rights reserved by WJQSERVER, related rights can be exercised by the infinite-iroha organization.
package touka
import (

View file

@ -1,3 +1,7 @@
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Copyright 2024 WJQSERVER. All rights reserved.
// All rights reserved by WJQSERVER, related rights can be exercised by the infinite-iroha organization.
package touka
import (

View file

@ -1,3 +1,7 @@
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Copyright 2024 WJQSERVER. All rights reserved.
// All rights reserved by WJQSERVER, related rights can be exercised by the infinite-iroha organization.
package touka
import (

View file

@ -1,3 +1,7 @@
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Copyright 2024 WJQSERVER. All rights reserved.
// All rights reserved by WJQSERVER, related rights can be exercised by the infinite-iroha organization.
package touka
import (

View file

@ -1,3 +1,7 @@
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Copyright 2024 WJQSERVER. All rights reserved.
// All rights reserved by WJQSERVER, related rights can be exercised by the infinite-iroha organization.
package touka
import (

1021
tree_test.go Normal file

File diff suppressed because it is too large Load diff