Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize code, configuration files #493

Merged
merged 85 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
6ce756e
fix: ptr
withchao Mar 5, 2024
6f29206
Merge branch 'openimsdk:main' into main
withchao Mar 5, 2024
9e8da4b
feat: go 1.19
withchao Mar 5, 2024
af46502
Merge branch 'openimsdk:main' into main
withchao Mar 6, 2024
0d20f73
fix: config get env
withchao Mar 6, 2024
a54a339
Merge branch 'openimsdk:main' into main
withchao Mar 6, 2024
413c958
Merge branch 'openimsdk:main' into main
withchao Mar 6, 2024
aaab1ee
Merge branch 'openimsdk:main' into main
withchao Mar 7, 2024
8324172
Merge branch 'openimsdk:main' into main
withchao Mar 8, 2024
6b54420
Merge branch 'openimsdk:main' into main
withchao Mar 13, 2024
264a24f
test log
withchao Mar 13, 2024
cdea715
fix; login
withchao Mar 13, 2024
4573d41
Merge branch 'main' into main
cubxxw Mar 15, 2024
7b34983
Merge branch 'openimsdk:main' into main
withchao Apr 8, 2024
6ae85c6
format
withchao Apr 8, 2024
cad9c5e
mage
withchao Apr 9, 2024
21ffd66
mage
skiffer-git Apr 9, 2024
5847f58
format
withchao Apr 9, 2024
c9dc7f0
Merge remote-tracking branch 'origin/code' into code
withchao Apr 9, 2024
c825c8f
format
withchao Apr 10, 2024
9667d00
Refactor code
skiffer-git Apr 10, 2024
cea3ec8
Refactor config
skiffer-git Apr 11, 2024
8994f41
Refactor config
skiffer-git Apr 11, 2024
ba26552
Refactor config
skiffer-git Apr 11, 2024
bd65e7e
config
withchao Apr 11, 2024
0550323
Refactor config
skiffer-git Apr 11, 2024
eab1533
Refactor config
skiffer-git Apr 11, 2024
0daa971
Refactor code
skiffer-git Apr 11, 2024
f883685
code format
withchao Apr 11, 2024
2e63187
code format
withchao Apr 12, 2024
6682e4f
code format, compiled and passed
withchao Apr 12, 2024
80c49e4
code format
withchao Apr 12, 2024
5519c98
Refactor code
skiffer-git Apr 15, 2024
103f2f9
code format
withchao Apr 15, 2024
8406187
remove scripts
withchao Apr 15, 2024
d4dc376
cobra runE
withchao Apr 15, 2024
3e42642
bug
withchao Apr 15, 2024
627566d
bug
withchao Apr 15, 2024
3ccbd45
bug
withchao Apr 15, 2024
d232521
fix: runtime: goroutine stack exceeds
withchao Apr 15, 2024
7f01481
rpc opt
withchao Apr 15, 2024
402c4dd
Refactor code
skiffer-git Apr 15, 2024
8a4fd75
update mod
withchao Apr 16, 2024
0e09d03
Merge remote-tracking branch 'origin/code' into code
withchao Apr 16, 2024
1e5f21b
update mod
withchao Apr 16, 2024
30dfcc2
update mod
withchao Apr 16, 2024
4e6a17e
update mod
withchao Apr 16, 2024
f9eb203
update mod
withchao Apr 16, 2024
d9b4cea
fix call
withchao Apr 16, 2024
8c0335c
fix
withchao Apr 16, 2024
b76ac26
fix
withchao Apr 16, 2024
fa71a4e
update go.mod
withchao Apr 18, 2024
880dd26
update go.mod
withchao Apr 18, 2024
ccd9e59
delete file
withchao Apr 18, 2024
981b6e3
Refactor code
skiffer-git Apr 19, 2024
e19a57f
Refactor code
skiffer-git Apr 19, 2024
959eaf0
chat secret
withchao Apr 19, 2024
87969e3
Merge remote-tracking branch 'origin/code' into code
withchao Apr 19, 2024
c9ce54e
chat secret
withchao Apr 19, 2024
c78fcaa
Refactor code
skiffer-git Apr 19, 2024
b06bd0a
Merge remote-tracking branch 'origin/code' into code
skiffer-git Apr 19, 2024
6577c5c
Refactor code
skiffer-git Apr 19, 2024
0e28663
Refactor code
skiffer-git Apr 19, 2024
a3f8e51
Refactor code
skiffer-git Apr 19, 2024
18d9bfa
add cancel
withchao Apr 19, 2024
c777482
Refactor code
skiffer-git Apr 19, 2024
77ab7b1
Merge remote-tracking branch 'origin/code' into code
skiffer-git Apr 19, 2024
235ce6f
Refactor code
skiffer-git Apr 19, 2024
9c90021
gin.SetMode(gin.ReleaseMode)
withchao Apr 19, 2024
22db1aa
Merge remote-tracking branch 'origin/code' into code
withchao Apr 19, 2024
76e5005
gin.SetMode(gin.ReleaseMode)
withchao Apr 19, 2024
e2aa35f
remove useless code
withchao Apr 19, 2024
e633d7e
update README.md
withchao Apr 19, 2024
858ba44
update README.md
withchao Apr 19, 2024
90db2a1
update README.md
withchao Apr 19, 2024
e13a6d9
update version
withchao Apr 19, 2024
217fa39
Refactor code
skiffer-git Apr 19, 2024
9264e3a
Refactor code
skiffer-git Apr 19, 2024
15e6212
Merge remote-tracking branch 'origin/code' into code
skiffer-git Apr 19, 2024
de4a244
feat: optimize api call
withchao Apr 19, 2024
8c9c02f
Merge remote-tracking branch 'origin/code' into code
withchao Apr 19, 2024
de47931
Refactor code
skiffer-git Apr 19, 2024
2b0717b
Merge remote-tracking branch 'origin/code' into code
skiffer-git Apr 19, 2024
dd7d8ab
Refactor code
skiffer-git Apr 19, 2024
f3ec3f4
Refactor code
skiffer-git Apr 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/auto-invite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
+ <a href="https://join.slack.com/t/openimsdk/shared_invite/zt-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg" target="_blank"><img src="https://img.shields.io/badge/Slack-OpenIM%2B-blueviolet?logo=slack&amp;logoColor=white"></a> We also have Slack channels for you to communicate and discuss. To join, visit https://slack.com/ and join our [👀 Open-IM-Server slack](https://join.slack.com/t/openimsdk/shared_invite/zt-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg) team channel.
+ <a href="https://mail.google.com/mail/u/0/?fs=1&tf=cm&[email protected]" target="_blank"><img src="https://img.shields.io/badge/gmail-%40OOpenIMSDKCore?style=social&logo=gmail"></a> Get in touch with us on [Gmail](https://mail.google.com/mail/u/0/?fs=1&tf=cm&[email protected]). If you have any questions or issues that need resolving, or any suggestions and feedback for our open source projects, please feel free to contact us via email.
+ <a href="https://doc.rentsoft.cn/" target="_blank"><img src="https://img.shields.io/badge/%E5%8D%9A%E5%AE%A2-%40OpenIMSDKCore-blue?style=social&logo=Octopus%20Deploy"></a> Read our [blog](https://doc.rentsoft.cn/). Our blog is a great place to stay up-to-date with Open-IM-Server projects and trends. On the blog, we share our latest developments, tech trends, and other interesting information.
+ <a href="https://github.com/OpenIMSDK/OpenIM-Docs/blob/main/docs/images/WechatIMG20.jpeg" target="_blank"><img src="https://img.shields.io/badge/%E5%BE%AE%E4%BF%A1-OpenIMSDKCore-brightgreen?logo=wechat&style=flat-square"></a> Add [Wechat](https://github.com/OpenIMSDK/OpenIM-Docs/blob/main/docs/images/WechatIMG20.jpeg) and indicate that you are a user or developer of Open-IM-Server. We will process your request as soon as possible.
+ <a href="https://github.com/openimsdk/OpenIM-Docs/blob/main/docs/images/WechatIMG20.jpeg" target="_blank"><img src="https://img.shields.io/badge/%E5%BE%AE%E4%BF%A1-OpenIMSDKCore-brightgreen?logo=wechat&style=flat-square"></a> Add [Wechat](https://github.com/openimsdk/OpenIM-Docs/blob/main/docs/images/WechatIMG20.jpeg) and indicate that you are a user or developer of Open-IM-Server. We will process your request as soon as possible.

- name: Close Issue
uses: peter-evans/close-issue@v3
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -373,3 +373,5 @@ dist

# config files, may contain sensitive informatio
config/config.yaml

start-config.yml
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ linters-settings:
# put imports beginning with prefix after 3rd-party packages;
# only support one prefix
# if not set, use goimports.local-prefixes
prefix: github.com/OpenIMSDK/OpenKF
prefix: github.com/openimsdk/OpenKF
gocognit:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 30
Expand Down Expand Up @@ -333,7 +333,7 @@ linters-settings:
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: github.com/OpenIMSDK/OpenKF
local-prefixes: github.com/openimsdk/OpenKF
golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0.9
Expand Down
28 changes: 14 additions & 14 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ changelog:
# build_flag_templates:
# - "--pull"
# - "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/OpenIMSDK/chat/main/README.md"
# - "--label=io.artifacthub.package.logo-url=hhttps://github.com/OpenIMSDK/chat/blob/main/assets/logo/openim-logo-green.png"
# - "--label=io.artifacthub.package.logo-url=hhttps://github.com/openimsdk/chat/blob/main/assets/logo/openim-logo-green.png"
# - '--label=io.artifacthub.package.maintainers=[{"name":"Xinwei Xiong","email":"[email protected]"}]'
# - "--label=io.artifacthub.package.license=Apace-2.0"
# - "--label=org.opencontainers.image.description=OpenIM Open source top instant messaging system"
Expand All @@ -267,7 +267,7 @@ changelog:
# build_flag_templates:
# - "--pull"
# - "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/OpenIMSDK/chat/main/README.md"
# - "--label=io.artifacthub.package.logo-url=hhttps://github.com/OpenIMSDK/chat/blob/main/assets/logo/openim-logo-green.png"
# - "--label=io.artifacthub.package.logo-url=hhttps://github.com/openimsdk/chat/blob/main/assets/logo/openim-logo-green.png"
# - '--label=io.artifacthub.package.maintainers=[{"name":"Xinwei Xiong","email":"[email protected]"}]'
# - "--label=io.artifacthub.package.license=Apace-2.0"
# - "--label=org.opencontainers.image.description=OpenIM Open source top instant messaging system"
Expand All @@ -289,7 +289,7 @@ changelog:
# build_flag_templates:
# - "--pull"
# - "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/OpenIMSDK/chat/main/README.md"
# - "--label=io.artifacthub.package.logo-url=hhttps://github.com/OpenIMSDK/chat/blob/main/assets/logo/openim-logo-green.png"
# - "--label=io.artifacthub.package.logo-url=hhttps://github.com/openimsdk/chat/blob/main/assets/logo/openim-logo-green.png"
# - '--label=io.artifacthub.package.maintainers=[{"name":"Xinwei Xiong","email":"[email protected]"}]'
# - "--label=io.artifacthub.package.license=Apace-2.0"
# - "--label=org.opencontainers.image.description=OpenIM Open source top instant messaging system"
Expand All @@ -311,7 +311,7 @@ changelog:
# build_flag_templates:
# - "--pull"
# - "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/OpenIMSDK/chat/main/README.md"
# - "--label=io.artifacthub.package.logo-url=hhttps://github.com/OpenIMSDK/chat/blob/main/assets/logo/openim-logo-green.png"
# - "--label=io.artifacthub.package.logo-url=hhttps://github.com/openimsdk/chat/blob/main/assets/logo/openim-logo-green.png"
# - '--label=io.artifacthub.package.maintainers=[{"name":"Xinwei Xiong","email":"[email protected]"}]'
# - "--label=io.artifacthub.package.license=Apace-2.0"
# - "--label=org.opencontainers.image.description=OpenIM Open source top instant messaging system"
Expand Down Expand Up @@ -361,7 +361,7 @@ nfpms:
- admin-rpc
# Your app's vendor.
vendor: OpenIMSDK
homepage: https://github.com/OpenIMSDK/chat
homepage: https://github.com/openimsdk/chat
maintainer: kubbot <https://github.com/kubbot>
description: |-
Auto sync github labels
Expand Down Expand Up @@ -441,17 +441,17 @@ release:
prerelease: auto
footer: |

## Welcome to the {{ .Tag }} release of [chat](https://github.com/OpenIMSDK/chat)!🎉🎉!
## Welcome to the {{ .Tag }} release of [chat](https://github.com/openimsdk/chat)!🎉🎉!

**Full Changelog**: https://github.com/OpenIMSDK/chat/compare/{{ .PreviousTag }}...{{ .Tag }}
**Full Changelog**: https://github.com/openimsdk/chat/compare/{{ .PreviousTag }}...{{ .Tag }}

## Helping out

+ We release logs are recorded on [✨ CHANGELOG](https://github.com/OpenIMSDK/Open-IM-Server/blob/main/CHANGELOG/CHANGELOG.md)
+ We release logs are recorded on [✨ CHANGELOG](https://github.com/openimsdk/Open-IM-Server/blob/main/CHANGELOG/CHANGELOG.md)

+ For information on versions of OpenIM and how to maintain branches, read [📚this article](https://github.com/OpenIMSDK/Open-IM-Server/blob/main/docs/conversions/version.md)
+ For information on versions of OpenIM and how to maintain branches, read [📚this article](https://github.com/openimsdk/Open-IM-Server/blob/main/docs/conversions/version.md)

+ If you wish to use mirroring, read OpenIM's [image management policy](https://github.com/OpenIMSDK/Open-IM-Server/blob/main/docs/conversions/images.md)
+ If you wish to use mirroring, read OpenIM's [image management policy](https://github.com/openimsdk/Open-IM-Server/blob/main/docs/conversions/images.md)

**Want to be one of them 😘?**

Expand All @@ -460,7 +460,7 @@ release:
<img src="https://github.com/openimbot/openimbot/blob/main/assets/icon/blue%E9%80%8F%E6%98%8E.png" width="50" height="50" />
</a>
<a href="https://www.openim.online">
<img src="https://github.com/OpenIMSDK/Open-IM-Server/blob/main/assets/logo/openim-logo.png" />
<img src="https://github.com/openimsdk/Open-IM-Server/blob/main/assets/logo/openim-logo.png" />
</a>
<a href="https://github.com/openimbot" style="float: right; margin-left: 10px;">
<img src="https://github.com/openimbot/openimbot/blob/main/assets/icon/red%E9%80%8F%E6%98%8E.png" width="50" height="50" />
Expand All @@ -470,8 +470,8 @@ release:
> **Note**
> @openimbot and @kubbot have made great contributions to the community as community 🤖robots(@openimsdk/bot), respectively.
> Thanks to the @openimsdk/openim team for all their hard work on this release.
> Thank you to all the [💕developers and contributors](https://github.com/OpenIMSDK/chat/graphs/contributors), people from all over the world, OpenIM brings us together
> Contributions to this project are welcome! Please see [CONTRIBUTING.md](https://github.com/OpenIMSDK/Open-IM-Server/blob/main/CONTRIBUTING.md) for details.
> Thank you to all the [💕developers and contributors](https://github.com/openimsdk/chat/graphs/contributors), people from all over the world, OpenIM brings us together
> Contributions to this project are welcome! Please see [CONTRIBUTING.md](https://github.com/openimsdk/Open-IM-Server/blob/main/CONTRIBUTING.md) for details.


## Get Involved with OpenIM!
Expand All @@ -492,4 +492,4 @@ release:
# announce:
# slack:
# enabled: false
# message_template: "slack {{ .Tag }} is out! Check it out: https://github.com/OpenIMSDK/Open-IM-Server/releases/tag/{{ .Tag }}"
# message_template: "slack {{ .Tag }} is out! Check it out: https://github.com/openimsdk/Open-IM-Server/releases/tag/{{ .Tag }}"
Loading
Loading