mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 19:40:36 +00:00
14 lines
411 B
Go
14 lines
411 B
Go
// Contains the message filter for fine grained subscriptions.
|
|
|
|
package whisper
|
|
|
|
import "crypto/ecdsa"
|
|
|
|
// Filter is used to subscribe to specific types of whisper messages.
|
|
type Filter struct {
|
|
To *ecdsa.PublicKey // Recipient of the message
|
|
From *ecdsa.PublicKey // Sender of the message
|
|
Topics []Topic // Topics to watch messages on
|
|
Fn func(*Message) // Handler in case of a match
|
|
}
|