1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-15 09:30:55 +00:00
Commit Graph

169 Commits

Author SHA1 Message Date
Ming Deng
5b3dd7e50f Adapter: orm 2020-09-06 13:33:52 +08:00
Ming Deng
f4a43814be Adapter: utils 2020-09-05 18:07:42 +08:00
Ming Deng
35f1bd2119 Adapter: testing 2020-09-05 16:58:49 +08:00
Ming Deng
f6c95ad534 Adapter: swagger module 2020-09-05 16:56:56 +08:00
Ming Deng
f1950482c2 Adapter: plugin 2020-09-05 16:54:22 +08:00
Ming Deng
1dae2c9eb3 Adapter: web module 2020-09-05 16:24:19 +08:00
Ming Deng
8ef9965eef Adapter: session module 2020-09-03 23:37:07 +08:00
Ming Deng
3530457ff9 Adapter: toolbox module 2020-09-03 21:34:57 +08:00
Ming Deng
cbd51616f1 adapter: validation module 2020-09-02 23:23:48 +08:00
Ming Deng
bdd8df6751 adapt migration 2020-09-02 21:01:54 +08:00
Ming Deng
8fc4f8847c adapt grace and metric 2020-09-02 20:43:35 +08:00
Ming Deng
3bf5cde38c adapt context 2020-09-02 20:36:53 +08:00
Anker Jam
7a53baaf9b rename modelRegister to modelCacheHandler 2020-09-02 00:33:46 +08:00
Anker Jam
7574b91760 add type modelRegister interface into Ormer 2020-09-02 00:26:25 +08:00
Ming Deng
78d91062c9 Adapt new API to old API: httplib 2020-09-01 22:16:49 +08:00
Ming Deng
23792401b5
Merge pull request #4201 from jianzhiyao/frt/proposal_4105
WIP:supports for proposal 4105
2020-09-01 22:05:15 +08:00
Anker Jam
e54dbabf0b movement for global modelCache 2020-09-01 21:56:48 +08:00
Ming Deng
185d55eb46 adapt config 2020-09-01 21:29:26 +08:00
Ming Deng
33b052bc7a support json 2020-08-31 14:15:01 +00:00
Ming Deng
087399c44a support xml 2020-08-31 13:57:26 +00:00
Ming Deng
f4f200cf04 enhance yaml 2020-08-31 13:02:38 +00:00
Ming Deng
c0462f75bf Add ctx to Task module API 2020-08-30 16:18:59 +00:00
Ming Deng
670064686e Add ctx to session API 2020-08-30 15:39:07 +00:00
Ming Deng
03bec05714 Add contect as first parameter for all config method 2020-08-29 16:25:20 +00:00
Ming Deng
81b9a1382a Fix UT 2020-08-29 14:27:06 +00:00
IamCathal
0189e6329a Add global logging override 2020-08-28 18:47:28 +01:00
IamCathal
8178f035a0 Custom formatting opts implementation 2020-08-28 18:18:28 +01:00
IamCathal
2b39ff7837 New opts formatter working for console 2020-08-28 18:00:45 +01:00
Ming Deng
c2361170b3 Support etcd 2020-08-29 00:07:33 +08:00
Ming Deng
5b35bf6065
Merge pull request #4192 from AllenX2018/supplement-datetimePrecision-UT
supplement datetime precision UT
2020-08-26 19:52:19 +08:00
Ming Deng
9472cba6c9 Fix UT 2020-08-26 04:16:09 +00:00
AllenX2018
b83094ac1e supplement datetime precision UT 2020-08-26 11:51:05 +08:00
Ming Deng
1cb0ff560d Support precision 2020-08-25 13:07:21 +00:00
IamCathal
c2471b22ad Remove ineffectual assignments
Removed 3 lines due to warning from test suite saying these lines had innefectual assignments
2020-08-24 20:54:55 +01:00
IamCathal
c5970766a3 Add init to es.go 2020-08-24 20:41:39 +01:00
IamCathal
48a98ec1a5 Fix init for alils.go 2020-08-24 20:39:53 +01:00
IamCathal
ed1d2c7f6e Add custom logging format functionality and global formatter functionality 2020-08-24 20:22:38 +01:00
AllenX2018
7a94996e22 Feature: implement the time precison for time.Time type 2020-08-24 20:23:54 +08:00
Ming Deng
581e48679e Merge pull request #4173 from AllenX2018/fix-bug-queryRow
Fix issue 3866
2020-08-23 21:04:34 +08:00
Ming Deng
09afe0ae8e
Merge pull request #4179 from IamCathal/custom-log-formatter-secondpr
Custom log formatter secondpr
2020-08-22 21:36:50 +08:00
IamCathal
e1da804b2b Add format func to alils 2020-08-20 19:20:30 +01:00
IamCathal
705e091593 Add format call before logging 2020-08-20 19:06:51 +01:00
IamCathal
6bdedff457 LogFormatter Implementation 2020-08-20 19:00:35 +01:00
Ming Deng
f3be6dd2e9
Merge pull request #4173 from AllenX2018/fix-bug-queryRow
Fix issue 3866
2020-08-20 22:25:37 +08:00
AllenX2018
9fe353dd0b Fix issue 3886 2020-08-20 10:00:49 +08:00
IamCathal
ff5ac3adf4 Update signature of WriteMsg in es.go 2020-08-19 16:20:19 +01:00
IamCathal
ca4a217783 Merge branch 'develop-2.0' into custom-log-formatter-firstpr 2020-08-19 16:05:42 +01:00
Ming Deng
2c16c7b917 Add more methods to Configer 2020-08-19 22:09:05 +08:00
IamCathal
77ddc3338f Fix file path logging for enableFullFilePath 2020-08-19 15:07:46 +01:00
IamCathal
ac3a549187 Fix test with new parameters 2020-08-19 14:21:29 +01:00
IamCathal
fe56de06b5 Add enableFullFilePath field to BeeLogger 2020-08-18 21:30:39 +01:00
IamCathal
6c002a3124 Update WriteMsg signatures for custom log formatting update 2020-08-18 21:30:11 +01:00
Ming Deng
7fe4eaef50 Refactor orm filter 2020-08-18 14:31:06 +00:00
Ming Deng
94f476fa39
Merge pull request #4158 from jianzhiyao/frt/fix_spk_upsert
fix:return error when calling ``InsertOrUpdate`` is successful with string primary key
2020-08-16 21:21:25 +08:00
Ming Deng
8574e30b3a
Merge pull request #4160 from AllenX2018/Improve-orm.Fielder-function
fix issue #3776
2020-08-14 22:20:07 +08:00
AllenX2018
7442919f5a fix issue #3776 2020-08-14 17:11:52 +08:00
jianzhiyao
7b899aa9af add ErrLastInsertIdUnavailable 2020-08-14 15:09:47 +08:00
Ming Deng
f73eee75ff Merge develop-2.0 2020-08-14 14:34:59 +08:00
jianzhiyao
739b8bab0c fix UT 2020-08-14 10:31:08 +08:00
jianzhiyao
139c393f08 add const ErrLastInsertIdUnavailable 2020-08-14 09:59:11 +08:00
Ming Deng
bdec93986b Bean: Support autowire by tag
Orm: Support default value filter
2020-08-13 21:26:39 +08:00
jianzhiyao
7ce0fde171 fix:return error when calling `InsertOrUpdate` is successful with string primary key 2020-08-13 19:14:00 +08:00
Ming Deng
d6a2621b3c
Merge pull request #4137 from phiphi282/change_redis_provider
Add additional options to redis session prov
2020-08-12 13:38:44 +08:00
Phillip Stagnet
813a4df3c5
Make sure expiry time is in seconds 2020-08-11 16:21:43 +02:00
Phillip Stagnet
7267f5e573
Add new config option into provider struct 2020-08-11 16:09:29 +02:00
jianzhiyao
2d1c02e1c1 Merge branch 'develop-2.0' of https://github.com/astaxie/beego into frt/fix_3830
# Conflicts:
#	pkg/orm/orm_test.go
2020-08-11 17:37:24 +08:00
jianzhiyao
9ca9535c48 fix:return error after inserting data when primary key is string 2020-08-11 16:53:31 +08:00
Phillip Stagnet
d1d9df74c7
Merge branch 'develop-2.0' of github.com:astaxie/beego into change_redis_provider 2020-08-11 10:47:06 +02:00
Ming Deng
82178a487b Merge develop-2.0 and resolve conflict 2020-08-11 08:16:04 +00:00
Phillip Stagnet
0813471202
Merge branch 'develop-2.0' of github.com:astaxie/beego into change_redis_provider 2020-08-11 09:52:53 +02:00
jianzhiyao
ce698aacf6 rm some methods 2020-08-11 12:06:02 +08:00
Ming Deng
c22af4c611 Fix Tracing and prometheus bug 2020-08-11 03:23:38 +00:00
Anker Jam
f8c0e6fec5 fix UT 2020-08-11 00:06:36 +08:00
Anker Jam
882f1273c8 add UT for specifying indexes 2020-08-10 23:27:03 +08:00
jianzhiyao
5a1fa4e1ec specify index 2020-08-10 18:46:16 +08:00
Ming Deng
75107f735e Support opentracing filter 2020-08-09 14:59:41 +00:00
Ming Deng
2e891152dd deprecated httplib and then support prometheus for httplib 2020-08-09 14:59:41 +00:00
Ming Deng
dec98f004c Support opentracing filter for Orm 2020-08-09 14:59:41 +00:00
Ming Deng
26b016a3a4
Merge pull request #4143 from flycash/fix/moveIni
Move init so it will be default implementation of config
2020-08-09 22:51:47 +08:00
Ming Deng
19aae0b7e1
Merge pull request #4107 from AllenX2018/fix-comment-router-issue
add comment router path configuration
2020-08-09 19:23:05 +08:00
Ming Deng
f9a3eae9d5 Move init so it will be default implementation of config 2020-08-08 13:17:49 +00:00
Ming Deng
7fc1e4de96
Merge pull request #4141 from flycash/ftr/ormInterceptor
Orm filter support
2020-08-08 20:52:37 +08:00
AllenX2018
993ccac2bd fix comment router generate issue 2020-08-08 16:17:12 +08:00
Ming Deng
2fd65a469c Support prometheus 2020-08-07 14:14:07 +00:00
Ming Deng
08cec9178f Orm filter support 2020-08-07 13:45:24 +00:00
IamCathal
63b3fc4a99 Fix retry amount comment 2020-08-06 16:09:06 +01:00
IamCathal
1b4bb43df0 More minor grammar fixes 2020-08-06 16:07:18 +01:00
Phillip Stagnet
ec55edfbc4
Add additional options to redis session prov
Adding option for frequency of checking timed out connections as well as
an option to specify retries.

These changes make redis provider more stable since connection problems
are becoming fewer.

Since redigo does not have this options and since redis_sentinel and
redis_cluster are using go-redis as a client, this commit changes from
redigo to go-redis for redis session provider.

Added tests for redis session provider as well.
2020-08-06 11:14:36 +02:00
Ming Deng
2fce8f9d1b
Merge pull request #4124 from phiphi282/session_exists_return_err
Update session provider interface to return errors on SessionExist
2020-08-06 09:17:49 +08:00
IamCathal
e7d8bab5d9 Improved definition of DefaultEvery 2020-08-05 17:56:11 +01:00
IamCathal
2f5683610f Minor grammar fixes 2020-08-05 17:50:05 +01:00
Phillip Stagnet
009074725e
Move interface change to pkg/session/README.md 2020-08-05 18:32:33 +02:00
Phillip Stagnet
ce50ca22d7
Merge branch 'develop-2.0' of github.com:astaxie/beego into session_exists_return_err 2020-08-05 18:30:19 +02:00
Phillip Stagnet
5f2f6e4f86
Add interface change in pkg folder 2020-08-05 18:29:22 +02:00
Ming Deng
261b704d8b Fix UT 2020-08-05 07:25:34 +00:00
Ming Deng
6c6cf91741 Support prometheus and opentracing filter 2020-08-04 23:15:42 +08:00
Ming Deng
aa3987f816 Merge remote-tracking branch 'origin/develop' into ftr/middleware 2020-08-04 22:26:01 +08:00
Ming Deng
79ffef90e3 support filter chain 2020-08-04 07:26:51 +00:00
Ming Deng
9f295067b7 Resolve conflict 2020-07-30 22:44:44 +08:00
Ming Deng
aa06a10493 uing pkg module 2020-07-29 14:42:27 +00:00