-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstore.go
24 lines (19 loc) · 828 Bytes
/
store.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package mqtt
import "git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.golang.git/packets"
type Store interface {
StoreSubscription(filter, cid string, qos byte)
DeleteSubscription(filter, cid string)
CleanSubscription(cid string)
LookupSubscriptions(callback func(filter, cid string, qos byte))
StoreRetained(p *packets.PublishPacket)
LookupRetained(callback func(*packets.PublishPacket))
FindInboundPacket(cid string, mid uint16) packets.ControlPacket
StoreInboundPacket(cid string, p packets.ControlPacket) error
StoreOutboundPacket(cid string, p packets.ControlPacket) error
StreamOfflinePackets(cid string, callback func(packets.ControlPacket))
DeleteInboundPacket(cid string, mid uint16)
DeleteOutboundPacket(cid string, mid uint16)
CleanPackets(cid string)
InPacketsSize() int
OutPacketsSize() int
}