55 Commits

Author SHA1 Message Date
Deng Ming
0bee140abb format code 2023-05-27 14:41:51 +08:00
Deng Ming
02331f66d4 optimize test 2023-05-27 14:41:51 +08:00
Stone-afk
882130421d feature extend readthrough for cache module (#5116)
* feature 增加readthrough
2023-05-27 14:41:51 +08:00
Ming Deng
76343e4422
Prepare Release 2.0.6 (#5104)
* add: generic cache random time offset expired.

* bugfix: Csrf token should be Secure and httpOnly, but not now

* fix: expose the Offset property to allow external modifications

* improving the concurrency performance of random value calculation

* add WithOffsetFunc to define private RandomExpireCache.offset field

* fix: add seconds definition

* build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.8.0

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.1...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix 4907: force admin service http only

* Feat: add get all tasks function (#4999)

* feat: add get all tasks function

* Refine Comments : admin/profile.go,bean/mock.go,config/global.go... (#5009)

* Refine Comments

* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go

* refine comments for for four files (#5011)

* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go

* Update db.go

* fix pass []any as any in variadic function by asasalint (#5012)

* fix pass []any as any in variadic function

* add change log

* build(deps): bump go.opentelemetry.io/otel/trace from 1.7.0 to 1.8.0 (#5019)

Bumps [go.opentelemetry.io/otel/trace](https://github.com/open-telemetry/opentelemetry-go) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/trace
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* refine comments for package core  (#5014)

* Refine Comments

* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go

* refine comments

* refine comments

* Update db.go

* refine comments for core

* build(deps): bump go.opentelemetry.io/otel/exporters/stdout/stdouttrace (#5018)

Bumps [go.opentelemetry.io/otel/exporters/stdout/stdouttrace](https://github.com/open-telemetry/opentelemetry-go) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/stdout/stdouttrace
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix 5022: Miss assiging ln to graceful Server (#5028)

* prepare for releasing v2.0.5

* prepare for releasing v2.0.5 (#5032)

* feat: make commands and docker compose for ORM unit tests (#5031)

* feat: make commands and docker compose for ORM unit tests

Signed-off-by: mango <xu.weiKyrie@foxmail.com>

* add changelog

Signed-off-by: mango <xu.weiKyrie@foxmail.com>

Signed-off-by: mango <xu.weiKyrie@foxmail.com>

* Modify comment syntax error (#5094)

* fix: revise the body wrapper to handle empty body case (#5102)

Fix the router.go serverHttp method, wrap the body if the request body
is empty, which can avoid panic when calling the CopyBody method.

Signed-off-by: chlins <chenyuzh@vmware.com>

Signed-off-by: chlins <chenyuzh@vmware.com>

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: mango <xu.weiKyrie@foxmail.com>
Signed-off-by: chlins <chenyuzh@vmware.com>
Co-authored-by: auual <ding@ibyte.me>
Co-authored-by: Leon Ding <deen.job@qq.com>
Co-authored-by: dada0z <zhang.guangda@qq.com>
Co-authored-by: kevinzeng <kevinzeng@zego.im>
Co-authored-by: Kevin Tsang <39397413+ktalg@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: 日暮颂歌1991 <448081525@qq.com>
Co-authored-by: Regan Yue <1131625869@qq.com>
Co-authored-by: alingse <alingse@foxmail.com>
Co-authored-by: mango <35127166+mangoGoForward@users.noreply.github.com>
Co-authored-by: 王哈哈 <31426858+wanghaha-dev@users.noreply.github.com>
Co-authored-by: Chlins Zhang <chlins.zhang@gmail.com>
2022-11-23 00:06:32 +08:00
Ming Deng
f81689dfb1
Release v2.0.5 (#5033)
* add: generic cache random time offset expired.

* bugfix: Csrf token should be Secure and httpOnly, but not now

* fix: expose the Offset property to allow external modifications

* improving the concurrency performance of random value calculation

* add WithOffsetFunc to define private RandomExpireCache.offset field

* fix: add seconds definition

* build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.8.0

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.1...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix 4907: force admin service http only

* Feat: add get all tasks function (#4999)

* feat: add get all tasks function

* Refine Comments : admin/profile.go,bean/mock.go,config/global.go... (#5009)

* Refine Comments

* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go

* refine comments for for four files (#5011)

* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go

* Update db.go

* fix pass []any as any in variadic function by asasalint (#5012)

* fix pass []any as any in variadic function

* add change log

* build(deps): bump go.opentelemetry.io/otel/trace from 1.7.0 to 1.8.0 (#5019)

Bumps [go.opentelemetry.io/otel/trace](https://github.com/open-telemetry/opentelemetry-go) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/trace
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* refine comments for package core  (#5014)

* Refine Comments

* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go

* refine comments

* refine comments

* Update db.go

* refine comments for core

* build(deps): bump go.opentelemetry.io/otel/exporters/stdout/stdouttrace (#5018)

Bumps [go.opentelemetry.io/otel/exporters/stdout/stdouttrace](https://github.com/open-telemetry/opentelemetry-go) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/stdout/stdouttrace
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix 5022: Miss assiging ln to graceful Server (#5028)

* prepare for releasing v2.0.5 (#5032)

Co-authored-by: auual <ding@ibyte.me>
Co-authored-by: Leon Ding <deen.job@qq.com>
Co-authored-by: dada0z <zhang.guangda@qq.com>
Co-authored-by: kevinzeng <kevinzeng@zego.im>
Co-authored-by: Kevin Tsang <39397413+ktalg@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: 日暮颂歌1991 <448081525@qq.com>
Co-authored-by: Regan Yue <1131625869@qq.com>
Co-authored-by: alingse <alingse@foxmail.com>
2022-07-30 16:11:51 +08:00
Deng Ming
3e886f71ca replace beego.me with beego.vip 2021-11-29 21:29:29 +08:00
Ming Deng
4437c6eb11 merge master 2021-09-03 11:40:13 +08:00
such
005b8b5813 fix comment
change MainContorlller to MainController
2021-07-19 16:30:34 +08:00
loyalsoldier
87158d6c3f
Fix: avoid shadow of builtin 2021-06-17 03:36:48 +08:00
loyalsoldier
3572ac96a4
Fix lint and format code in adapter dir 2021-06-06 18:37:33 +08:00
Ming Deng
ca328208cc
Merge pull request #4647 from Loyalsoldier/context-fix-lint
Fix lint and format code in adapter/context dir
2021-06-06 16:33:21 +08:00
Ming Deng
24fa805170
Merge pull request #4645 from Loyalsoldier/cache-fix-lint
Fix lint and format code in adapter/cache dir
2021-06-06 16:30:23 +08:00
Ming Deng
bd134b94db
Merge pull request #4648 from Loyalsoldier/httplib-fix-lint
Fix lint and format code in adapter/httplib dir
2021-06-06 16:22:18 +08:00
loyalsoldier
fc38efb7d4
Fix lint and format code in adapter/httplib dir 2021-06-05 11:33:30 +08:00
loyalsoldier
4fee15c1f1
Fix lint and format code in adapter/context dir 2021-06-05 11:18:39 +08:00
loyalsoldier
1db0588770
Fix lint and format code in adapter/config dir 2021-06-05 11:14:50 +08:00
loyalsoldier
79f6cd9c31
Fix lint and format code in adapter/cache dir 2021-06-05 11:11:37 +08:00
loyalsoldier
91d993b7e2
Fix imports by gci 2021-05-19 22:28:05 +08:00
loyalsoldier
c6813f0d24
Fix: remove unused code according to golangci-lint 2021-05-19 22:27:19 +08:00
loyalsoldier
2b7401109f
Chore: format code 2021-05-19 22:27:17 +08:00
linxiaoyi
480bb0e5d0 rename function to fix sonar 2021-05-17 14:43:09 +08:00
June
8c05252378 Fix issue #4528 2021-03-15 10:17:32 +08:00
shubhendra
512133e14b
Remove unnecessary use of slice 2021-02-25 15:58:44 +05:30
shubhendra
b849cfc18c
Fix unnecessary allocations due to Index calls 2021-02-25 15:58:42 +05:30
Ming Deng
62aa0188c4 fix sonar Part3 2021-02-04 16:53:27 +08:00
Ming Deng
f03aa62aca Merge develop 2021-02-03 10:22:19 +08:00
Ming Deng
9c392a3a09 Fix Sonar Part2 2021-02-01 21:27:02 +08:00
anoymouscoder
535165d7f0 add logFilter to debug request and response 2021-02-01 21:11:42 +08:00
Ming Deng
de5c2c9a27 Merge main & resolve conflict 2021-02-01 00:24:45 +08:00
Ming Deng
41d682d878 Fix Sonart PR1 2021-02-01 00:22:52 +08:00
Jihoon Seo
113b90531c Apply goimports' modifications 2021-01-28 13:42:03 +09:00
Jihoon Seo
2bb6c45786 Update beego pkg paths 2021-01-28 13:35:38 +09:00
Ming Deng
c8a325efe3 Remove prometheus duration label 2021-01-19 21:20:50 +08:00
Jason li
686b73891e finish timeout option for task 2021-01-14 11:55:56 +08:00
Ming Deng
babf0dfc14 Make compatible 2021-01-03 22:00:47 +08:00
Ming Deng
f6b7543478
Merge pull request #4318 from AllenX2018/fix-issue-4176
Fix issue #4176
2021-01-02 19:10:40 +08:00
Ming Deng
e25f3c0920 fix 4396 2020-12-28 23:11:19 +08:00
Ming Deng
73d81bafd9 Remove duration from prometheus label 2020-12-26 22:16:17 +08:00
AllenX2018
75849b6d6a Merge branch 'develop' of https://github.com/beego/beego into fix-issue-4176 2020-12-26 16:57:22 +08:00
AllenX2018
0d890d6129 Merge branch 'develop' of https://github.com/astaxie/beego into fix-issue-4176 2020-12-26 16:33:09 +08:00
Ming Deng
f27358a543 Fix 4383 2020-12-22 22:17:20 +08:00
Ming Deng
b64a1e73ed Fix adapter namespace don't work BUG 2020-12-15 22:22:48 +08:00
Ming Deng
385e1d390f update misspell and gofmt 2020-12-14 13:52:26 +08:00
Ming Deng
d4da82ef77 format code 2020-12-14 12:34:55 +08:00
Ming Deng
7bc6010604 rename to v2 2020-12-14 11:12:00 +08:00
Ming Deng
a70f7fc920 using new organization 2020-12-13 23:09:19 +08:00
Ming Deng
198b9cce5f rename key world 'governor' to 'admin' 2020-12-13 19:11:07 +08:00
jianzhiyao
54ab211f00
Merge pull request #4329 from jianzhiyao/fix-3865
fix dot parse in route & delete useless testing file
2020-12-01 11:52:53 +08:00
Anker Jam
59ca0d063f fix dot parsing result in route & delete useless testing file 2020-11-29 23:39:58 +08:00
Ming Deng
8d7f48ea75 expose more error code in web module 2020-11-29 22:33:03 +08:00