Files
oc-discovery/daemons/node/common/interface.go

18 lines
361 B
Go
Raw Normal View History

2026-01-30 16:57:36 +01:00
package common
import (
"context"
"cloud.o-forge.io/core/oc-lib/models/peer"
2026-03-05 15:22:02 +01:00
pubsub "github.com/libp2p/go-libp2p-pubsub"
2026-01-30 16:57:36 +01:00
)
2026-02-17 13:11:22 +01:00
type HeartBeatStreamed interface {
GetUptimeTracker() *UptimeTracker
}
2026-01-30 16:57:36 +01:00
type DiscoveryPeer interface {
2026-03-05 15:22:02 +01:00
GetPeerRecord(ctx context.Context, key string, search bool) ([]*peer.Peer, error)
GetPubSub(topicName string) *pubsub.Topic
2026-01-30 16:57:36 +01:00
}