Skip to content

Commit 9e07140

Browse files
authored
feat: sls golang util support putLogs (#135)
* feat: sls golang util support logGroup serialize
1 parent 775a06b commit 9e07140

File tree

6 files changed

+2287
-1
lines changed

6 files changed

+2287
-1
lines changed

alibabacloud-gateway-sls/util/Teafile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"releases": {
1616
"ts": "@alicloud/gateway-sls-util:^0.3.0",
17-
"go": "github.com/alibabacloud-go/alibabacloud-gateway-sls-util/client:v0.3.0",
17+
"go": "github.com/alibabacloud-go/alibabacloud-gateway-sls-util/client:v0.4.0",
1818
"java": "com.aliyun:alibabacloud-gateway-sls-util:0.4.0",
1919
"python": "alibabacloud_gateway_sls_util:0.4.0",
2020
"python2": "alibabacloud_gateway_sls_util_py2:0.0.1",

alibabacloud-gateway-sls/util/golang/client/client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,7 @@ func IsDecompressorAvailable(compressType *string) (_result *bool) {
8181
func BytesLength(src []byte) (_result *int64) {
8282
return tea.Int64(int64(len(src)))
8383
}
84+
85+
func SerializeLogGroupToPB(logGroup interface{}) (_result []byte, _err error) {
86+
return serializeLogGroupToPB(logGroup)
87+
}

0 commit comments

Comments
 (0)