mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
feat: gitignore file
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
This commit is contained in:
parent
39fd6e5407
commit
8891274ccd
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,6 +6,7 @@ out-test
|
||||
.github
|
||||
.idea
|
||||
.exe
|
||||
_output/
|
||||
|
||||
deploy/open_im_api
|
||||
deploy/open_im_msg_gateway
|
||||
|
@ -3,8 +3,9 @@ package msggateway
|
||||
import (
|
||||
"bytes"
|
||||
"compress/gzip"
|
||||
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
|
||||
"io"
|
||||
|
||||
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
|
||||
)
|
||||
|
||||
type Compressor interface {
|
||||
@ -29,6 +30,7 @@ func (g *GzipCompressor) Compress(rawData []byte) ([]byte, error) {
|
||||
}
|
||||
return gzipBuffer.Bytes(), nil
|
||||
}
|
||||
|
||||
func (g *GzipCompressor) DeCompress(compressedData []byte) ([]byte, error) {
|
||||
buff := bytes.NewBuffer(compressedData)
|
||||
reader, err := gzip.NewReader(buff)
|
||||
|
Loading…
x
Reference in New Issue
Block a user