FULL OC-DISCOVERY LOGIC
This commit is contained in:
11
daemons/node/common/interface.go
Normal file
11
daemons/node/common/interface.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"cloud.o-forge.io/core/oc-lib/models/peer"
|
||||
)
|
||||
|
||||
type DiscoveryPeer interface {
|
||||
GetPeerRecord(ctx context.Context, key string) (*peer.Peer, error)
|
||||
}
|
||||
Reference in New Issue
Block a user