Documentation
¶
Index ¶
Constants ¶
View Source
const CName = "common.inboxclient"
Variables ¶
View Source
var ( ErrPubKeyMissing = errors.New("peer pub key missing") ErrNetworkMismatched = errors.New("network mismatched") )
Functions ¶
This section is empty.
Types ¶
type InboxClient ¶
type InboxClient interface {
InboxFetch(ctx context.Context, offset string) (messages []*coordinatorproto.InboxMessage, hasMore bool, err error)
InboxAddMessage(ctx context.Context, receiverPubKey crypto.PubKey, message *coordinatorproto.InboxMessage) (err error)
SetMessageReceiver(receiver MessageReceiver) (err error)
app.ComponentRunnable
}
func New ¶
func New() InboxClient
type MessageReceiver ¶
type MessageReceiver func(message *coordinatorproto.NotifySubscribeEvent)
Click to show internal directories.
Click to hide internal directories.