summaryrefslogtreecommitdiff
path: root/common/gateway/compressor.go
diff options
context:
space:
mode:
authorMatthieu <matthieu@developershouse.xyz>2021-09-09 22:16:39 +0400
committerMatthieu <matthieu@developershouse.xyz>2021-09-09 22:16:39 +0400
commit11912b050a97c258a8a38552d855f183c339beee (patch)
treed80f960beb4e0455cd8d0d8addb7b3308dda6933 /common/gateway/compressor.go
parente28d134370196d3e4d3ff9016a36cce011031e58 (diff)
gateway improvements, common packages and examples
Diffstat (limited to 'common/gateway/compressor.go')
-rw-r--r--common/gateway/compressor.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/common/gateway/compressor.go b/common/gateway/compressor.go
deleted file mode 100644
index c8dbb93..0000000
--- a/common/gateway/compressor.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package gateway
-
-import "github.com/discordnova/nova/common/discord/types/payloads/gateway"
-
-// GatewayConnectionOptions is the options given to gateway when the connector is passed to it.
-type GatewayConnectionOptions struct {
- Encoding string
- TransportCompression string
-}
-
-// Compression is the interface that needs to be implemented by a generic compressor.
-type Compression interface {
- GetConnectionOptions() GatewayConnectionOptions
- DecodeMessage(data []byte) (*gateway.Payload, error)
- Reset() error
-}