2024-01-10 11:21:03 +00:00
|
|
|
package service
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.lumeweb.com/LumeWeb/libs5-go/net"
|
|
|
|
"git.lumeweb.com/LumeWeb/libs5-go/protocol"
|
|
|
|
)
|
|
|
|
|
2024-01-30 02:32:13 +00:00
|
|
|
type RegistryService interface {
|
2024-01-30 01:52:17 +00:00
|
|
|
Set(sre protocol.SignedRegistryEntry, trusted bool, receivedFrom net.Peer) error
|
|
|
|
BroadcastEntry(sre protocol.SignedRegistryEntry, receivedFrom net.Peer) error
|
|
|
|
SendRegistryRequest(pk []byte) error
|
|
|
|
Get(pk []byte) (protocol.SignedRegistryEntry, error)
|
|
|
|
Listen(pk []byte, cb func(sre protocol.SignedRegistryEntry)) (func(), error)
|
2024-01-30 02:32:13 +00:00
|
|
|
Service
|
2024-01-10 11:21:03 +00:00
|
|
|
}
|