Skip to content

Commit 51b2ec9

Browse files
author
ChenMingjie
authored
Release v1.0.1 (#118)
# Change Log ## v1.0.1 (2023-10-20) ### Features - all: update copyright headers (#95) - workflows: use github-hosted runner to speed up PR checks (#99) - go.mod: update dependencies to v1.0.0 (#98) ### Bug Fixes - transport: should register stream server transport for go-net (#101) - gomod: fix go.mod of examples (#105) ### Enhancements - gomod: upgrade golang.org/x/net to latest version (#106) - example: improve stream example (#110) - client: remove internal info (#103) ### Documentations - examples: update makefiles (#115) - docs: update server dev links (#113) - docs: fix go doc links in quick_start (#109) - server: rewrite package comments in English (#96) - docs: fix broken http links (#97) - readme: replace invalid links (#94) - docs: make links relative to the project's root in markdown files (#93) - docs: add benchmarking result (#92) ### Refactors - all: import renaming("gopkg.in/yaml.v3" => yaml "gopkg.in/yaml.v3") (#112) ### Integration Tests - test: update go.mod (#111)
2 parents cbdbbdb + 0e34bd4 commit 51b2ec9

File tree

515 files changed

+5224
-1351
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

515 files changed

+5224
-1351
lines changed

.github/workflows/cla.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414

1515
jobs:
1616
CLAAssistant:
17-
runs-on: self-hosted
17+
runs-on: ubuntu-latest
1818
steps:
1919
- name: "CLA Assistant"
2020
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'

.github/workflows/prc.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2929
golangci:
3030
name: lint
31-
runs-on: self-hosted
31+
if: github.event_name == 'pull_request'
32+
runs-on: ubuntu-latest
3233
steps:
3334
- uses: actions/setup-go@v4
3435
with:
@@ -42,14 +43,14 @@ jobs:
4243
skip-cache: true # To prevent occasional failure of this action.
4344
typos:
4445
name: typos
45-
runs-on: self-hosted
46+
runs-on: ubuntu-latest
4647
steps:
4748
- uses: actions/checkout@v3
4849
- name: typos
4950
uses: crate-ci/typos@master
5051
go-apidiff:
5152
if: github.event_name == 'pull_request'
52-
runs-on: self-hosted
53+
runs-on: ubuntu-latest
5354
steps:
5455
- uses: actions/checkout@v3
5556
with:

CONTRIBUTING.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ When opening an issue, make sure to answer these five questions:
4040
4. What did you expect to see?
4141
5. What did you see instead?
4242

43-
For change proposals, see Proposing Changes To [tRPC-Go-Proposals](https://github.com/trpc-group/trpc/tree/main/proposal).
43+
For change proposals, see Proposing Changes To [tRPC-Proposals](https://github.com/trpc-group/trpc/tree/main/proposal).
4444

4545
## Contributing code
4646

@@ -110,11 +110,18 @@ Instead, your name will appear in the change log.
110110
New files that you contribute should use the standard copyright header:
111111

112112
```go
113+
//
114+
//
113115
// Tencent is pleased to support the open source community by making tRPC available.
114-
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
116+
//
117+
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
118+
// All rights reserved.
119+
//
115120
// If you have downloaded a copy of the tRPC source code from Tencent,
116-
// please note that tRPC-Go source code is licensed under the Apache 2.0 License,
117-
// A copy of the Apache 2.0 License can be found in the LICENSE file.
121+
// please note that tRPC source code is licensed under the Apache 2.0 License,
122+
// A copy of the Apache 2.0 License is included in this file.
123+
//
124+
//
118125
```
119126

120127
Files in the repository are copyrighted the year they are added.

CONTRIBUTING.zh_CN.md

+13-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
## 在贡献代码之前
1313

1414
项目欢迎代码补丁,但为了确保事情得到良好协调,您应该在开始工作之前讨论任何重大变更。
15-
建议您在 issue 跟踪器中表明您的贡献意图,可以通过[认领现有 issue](https://github.com/golang/go/issues)[创建新 issue](https://github.com/trpc-group/trpc-go/issues/new) 来实现。
15+
建议您在 issue 跟踪器中表明您的贡献意图,可以通过[认领现有 issue](https://github.com/trpc-group/trpc-go/issues)[创建新 issue](https://github.com/trpc-group/trpc-go/issues/new) 来实现。
1616

1717
### 查看 issue 跟踪器
1818

@@ -21,7 +21,7 @@ issue 会被分类以管理工作流程。
2121

2222
大多数 issue 都会被标记为以下工作流标签之一:
2323
- **NeedsInvestigation**:issue 尚未完全理解,需要分析以了解根本原因。
24-
- **NeedsDecision**:issue 相对已经理解得很好,但tRPC-Go团队尚未决定解决 issue 的最佳方法。
24+
- **NeedsDecision**:issue 相对已经理解得很好,但 tRPC-Go 团队尚未决定解决 issue 的最佳方法。
2525
在编写代码之前最好等待决策。
2626
如果一段时间内没有决策且您有兴趣处理处于这种状态的 issue,请随时在 issue 评论中“ping”维护者。
2727
- **NeedsFix**:issue 已完全理解,可以编写代码进行修复。
@@ -40,7 +40,7 @@ issue 会被分类以管理工作流程。
4040
4. 您期望看到什么?
4141
5. 您实际看到的是什么?
4242

43-
关于变更提案,请参阅向 [tRPC-Go-Proposals](https://github.com/trpc-group/trpc/tree/main/proposal) 提议变更。
43+
关于变更提案,请参阅向 [tRPC-Proposals](https://github.com/trpc-group/trpc/tree/main/proposal) 提议变更。
4444

4545
## 贡献代码
4646

@@ -100,11 +100,18 @@ tRPC-Go 代码仓库中的文件不列出作者姓名,以避免混乱并避免
100100

101101
您贡献的新文件应使用标准版权声明:
102102
```go
103+
//
104+
//
103105
// Tencent is pleased to support the open source community by making tRPC available.
104-
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
106+
//
107+
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
108+
// All rights reserved.
109+
//
105110
// If you have downloaded a copy of the tRPC source code from Tencent,
106-
// please note that tRPC-Go source code is licensed under the Apache 2.0 License,
107-
// A copy of the Apache 2.0 License can be found in the LICENSE file.
111+
// please note that tRPC source code is licensed under the Apache 2.0 License,
112+
// A copy of the Apache 2.0 License is included in this file.
113+
//
114+
//
108115
```
109116

110117
代码仓库中的文件在添加时受版权保护。

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ English | [中文](README.zh_CN.md)
66
[![Go Report Card](https://goreportcard.com/badge/trpc.group/trpc-go/trpc-go)](https://goreportcard.com/report/trpc.group/trpc-go/trpc-go)
77
[![LICENSE](https://img.shields.io/badge/license-Apache--2.0-green.svg)](https://github.com/trpc-group/trpc-go/blob/main/LICENSE)
88
[![Releases](https://img.shields.io/github/release/trpc-group/trpc-go.svg?style=flat-square)](https://github.com/trpc-group/trpc-go/releases)
9-
[![Docs](https://img.shields.io/badge/docs-latest-green)](https://trpc.group)
9+
[![Docs](https://img.shields.io/badge/docs-latest-green)](https://trpc.group/docs/languages/go/)
1010
[![Tests](https://github.com/trpc-group/trpc-go/actions/workflows/prc.yml/badge.svg)](https://github.com/trpc-group/trpc-go/actions/workflows/prc.yml)
1111
[![Coverage](https://codecov.io/gh/trpc-group/trpc-go/branch/main/graph/badge.svg)](https://app.codecov.io/gh/trpc-group/trpc-go/tree/main)
1212

README.zh_CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Go Report Card](https://goreportcard.com/badge/trpc.group/trpc-go/trpc-go)](https://goreportcard.com/report/trpc.group/trpc-go/trpc-go)
77
[![LICENSE](https://img.shields.io/badge/license-Apache--2.0-green.svg)](https://github.com/trpc-group/trpc-go/blob/main/LICENSE)
88
[![Releases](https://img.shields.io/github/release/trpc-group/trpc-go.svg?style=flat-square)](https://github.com/trpc-group/trpc-go/releases)
9-
[![Docs](https://img.shields.io/badge/docs-latest-green)](https://trpc.group/zh/)
9+
[![Docs](https://img.shields.io/badge/docs-latest-green)](https://trpc.group/zh/docs/languages/go/)
1010
[![Tests](https://github.com/trpc-group/trpc-go/actions/workflows/prc.yml/badge.svg)](https://github.com/trpc-group/trpc-go/actions/workflows/prc.yml)
1111
[![Coverage](https://codecov.io/gh/trpc-group/trpc-go/branch/main/graph/badge.svg)](https://app.codecov.io/gh/trpc-group/trpc-go/tree/main)
1212

admin/admin.go

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
//
2+
//
13
// Tencent is pleased to support the open source community by making tRPC available.
2-
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
4+
//
5+
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
6+
// All rights reserved.
7+
//
38
// If you have downloaded a copy of the tRPC source code from Tencent,
4-
// please note that tRPC source code is licensed under the Apache 2.0 License that can be found in the LICENSE file.
9+
// please note that tRPC source code is licensed under the Apache 2.0 License,
10+
// A copy of the Apache 2.0 License is included in this file.
11+
//
12+
//
513

614
// Package admin provides management capabilities for trpc services,
715
// including but not limited to health checks, logging, performance monitoring, RPCZ, etc.

admin/admin_test.go

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
//
2+
//
13
// Tencent is pleased to support the open source community by making tRPC available.
2-
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
4+
//
5+
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
6+
// All rights reserved.
7+
//
38
// If you have downloaded a copy of the tRPC source code from Tencent,
4-
// please note that tRPC source code is licensed under the Apache 2.0 License that can be found in the LICENSE file.
9+
// please note that tRPC source code is licensed under the Apache 2.0 License,
10+
// A copy of the Apache 2.0 License is included in this file.
11+
//
12+
//
513

614
package admin
715

admin/admin_unix_test.go

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
//
2+
//
13
// Tencent is pleased to support the open source community by making tRPC available.
2-
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
4+
//
5+
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
6+
// All rights reserved.
7+
//
38
// If you have downloaded a copy of the tRPC source code from Tencent,
4-
// please note that tRPC source code is licensed under the Apache 2.0 License that can be found in the LICENSE file.
9+
// please note that tRPC source code is licensed under the Apache 2.0 License,
10+
// A copy of the Apache 2.0 License is included in this file.
11+
//
12+
//
513

614
//go:build !windows
715
// +build !windows

admin/config.go

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
//
2+
//
13
// Tencent is pleased to support the open source community by making tRPC available.
2-
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
4+
//
5+
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
6+
// All rights reserved.
7+
//
38
// If you have downloaded a copy of the tRPC source code from Tencent,
4-
// please note that tRPC source code is licensed under the Apache 2.0 License that can be found in the LICENSE file.
9+
// please note that tRPC source code is licensed under the Apache 2.0 License,
10+
// A copy of the Apache 2.0 License is included in this file.
11+
//
12+
//
513

614
package admin
715

admin/mux.go

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
//
2+
//
13
// Tencent is pleased to support the open source community by making tRPC available.
2-
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
4+
//
5+
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
6+
// All rights reserved.
7+
//
38
// If you have downloaded a copy of the tRPC source code from Tencent,
4-
// please note that tRPC source code is licensed under the Apache 2.0 License that can be found in the LICENSE file.
9+
// please note that tRPC source code is licensed under the Apache 2.0 License,
10+
// A copy of the Apache 2.0 License is included in this file.
11+
//
12+
//
513

614
package admin
715

admin/options.go

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
//
2+
//
13
// Tencent is pleased to support the open source community by making tRPC available.
2-
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
4+
//
5+
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
6+
// All rights reserved.
7+
//
38
// If you have downloaded a copy of the tRPC source code from Tencent,
4-
// please note that tRPC source code is licensed under the Apache 2.0 License that can be found in the LICENSE file.
9+
// please note that tRPC source code is licensed under the Apache 2.0 License,
10+
// A copy of the Apache 2.0 License is included in this file.
11+
//
12+
//
513

614
package admin
715

admin/options_test.go

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
//
2+
//
13
// Tencent is pleased to support the open source community by making tRPC available.
2-
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
4+
//
5+
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
6+
// All rights reserved.
7+
//
38
// If you have downloaded a copy of the tRPC source code from Tencent,
4-
// please note that tRPC source code is licensed under the Apache 2.0 License that can be found in the LICENSE file.
9+
// please note that tRPC source code is licensed under the Apache 2.0 License,
10+
// A copy of the Apache 2.0 License is included in this file.
11+
//
12+
//
513

614
package admin
715

admin/router.go

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
//
2+
//
13
// Tencent is pleased to support the open source community by making tRPC available.
2-
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
4+
//
5+
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
6+
// All rights reserved.
7+
//
38
// If you have downloaded a copy of the tRPC source code from Tencent,
4-
// please note that tRPC source code is licensed under the Apache 2.0 License that can be found in the LICENSE file.
9+
// please note that tRPC source code is licensed under the Apache 2.0 License,
10+
// A copy of the Apache 2.0 License is included in this file.
11+
//
12+
//
513

614
package admin
715

admin/router_test.go

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
//
2+
//
13
// Tencent is pleased to support the open source community by making tRPC available.
2-
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
4+
//
5+
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
6+
// All rights reserved.
7+
//
38
// If you have downloaded a copy of the tRPC source code from Tencent,
4-
// please note that tRPC source code is licensed under the Apache 2.0 License that can be found in the LICENSE file.
9+
// please note that tRPC source code is licensed under the Apache 2.0 License,
10+
// A copy of the Apache 2.0 License is included in this file.
11+
//
12+
//
513

614
package admin
715

client/attachment.go

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
//
2+
//
13
// Tencent is pleased to support the open source community by making tRPC available.
2-
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
4+
//
5+
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
6+
// All rights reserved.
7+
//
38
// If you have downloaded a copy of the tRPC source code from Tencent,
4-
// please note that tRPC source code is licensed under the Apache 2.0 License that can be found in the LICENSE file.
9+
// please note that tRPC source code is licensed under the Apache 2.0 License,
10+
// A copy of the Apache 2.0 License is included in this file.
11+
//
12+
//
513

614
package client
715

client/attachment_test.go

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
//
2+
//
13
// Tencent is pleased to support the open source community by making tRPC available.
2-
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
4+
//
5+
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
6+
// All rights reserved.
7+
//
38
// If you have downloaded a copy of the tRPC source code from Tencent,
4-
// please note that tRPC source code is licensed under the Apache 2.0 License that can be found in the LICENSE file.
9+
// please note that tRPC source code is licensed under the Apache 2.0 License,
10+
// A copy of the Apache 2.0 License is included in this file.
11+
//
12+
//
513

614
package client
715

client/client.go

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
//
2+
//
13
// Tencent is pleased to support the open source community by making tRPC available.
2-
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
4+
//
5+
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
6+
// All rights reserved.
7+
//
38
// If you have downloaded a copy of the tRPC source code from Tencent,
4-
// please note that tRPC source code is licensed under the Apache 2.0 License that can be found in the LICENSE file.
9+
// please note that tRPC source code is licensed under the Apache 2.0 License,
10+
// A copy of the Apache 2.0 License is included in this file.
11+
//
12+
//
513

614
// Package client is tRPC-Go clientside implementation,
715
// including network transportation, resolving, routing etc.

client/client_test.go

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
//
2+
//
13
// Tencent is pleased to support the open source community by making tRPC available.
2-
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
4+
//
5+
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
6+
// All rights reserved.
7+
//
38
// If you have downloaded a copy of the tRPC source code from Tencent,
4-
// please note that tRPC source code is licensed under the Apache 2.0 License that can be found in the LICENSE file.
9+
// please note that tRPC source code is licensed under the Apache 2.0 License,
10+
// A copy of the Apache 2.0 License is included in this file.
11+
//
12+
//
513

614
package client_test
715

@@ -15,7 +23,7 @@ import (
1523
"github.com/stretchr/testify/require"
1624
trpcpb "trpc.group/trpc/trpc-protocol/pb/go/trpc"
1725

18-
"trpc.group/trpc-go/trpc-go"
26+
trpc "trpc.group/trpc-go/trpc-go"
1927
"trpc.group/trpc-go/trpc-go/client"
2028
"trpc.group/trpc-go/trpc-go/codec"
2129
"trpc.group/trpc-go/trpc-go/errs"

client/config.go

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
//
2+
//
13
// Tencent is pleased to support the open source community by making tRPC available.
2-
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
4+
//
5+
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
6+
// All rights reserved.
7+
//
38
// If you have downloaded a copy of the tRPC source code from Tencent,
4-
// please note that tRPC source code is licensed under the Apache 2.0 License that can be found in the LICENSE file.
9+
// please note that tRPC source code is licensed under the Apache 2.0 License,
10+
// A copy of the Apache 2.0 License is included in this file.
11+
//
12+
//
513

614
package client
715

0 commit comments

Comments
 (0)