This commit is contained in:
pluto
2023-07-14 18:59:28 +08:00
committed by GitHub
parent e8229700e9
commit 887267e62d
2 changed files with 4 additions and 3 deletions
+1 -3
View File
@@ -5,7 +5,7 @@ go 1.18
require (
firebase.google.com/go v3.13.0+incompatible
github.com/OpenIMSDK/open_utils v1.0.8
github.com/Shopify/sarama v1.32.0
github.com/Shopify/sarama v1.29.0
github.com/bwmarrin/snowflake v0.3.0
github.com/dtm-labs/rockscache v0.1.1
github.com/gin-gonic/gin v1.9.1
@@ -141,5 +141,3 @@ require (
google.golang.org/genproto v0.0.0-20230525234025-438c736192d0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
)
replace github.com/Shopify/sarama => github.com/Shopify/sarama v1.29.0
@@ -18,10 +18,12 @@ import (
"context"
)
// OfflinePusher Offline Pusher
type OfflinePusher interface {
Push(ctx context.Context, userIDs []string, title, content string, opts *Opts) error
}
// Opts opts
type Opts struct {
Signal *Signal
IOSPushSound string
@@ -29,6 +31,7 @@ type Opts struct {
Ex string
}
// Signal message id
type Signal struct {
ClientMsgID string
}