You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
316 B
21 lines
316 B
2 years ago
|
package offlinepush
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
)
|
||
|
|
||
|
type OfflinePusher interface {
|
||
|
Push(ctx context.Context, userIDs []string, title, content string, opts *Opts) error
|
||
|
}
|
||
|
|
||
|
type Opts struct {
|
||
|
Signal *Signal
|
||
|
IOSPushSound string
|
||
|
IOSBadgeCount bool
|
||
|
Ex string
|
||
|
}
|
||
|
|
||
|
type Signal struct {
|
||
|
ClientMsgID string
|
||
|
}
|