github.com/projecteru2/core@v0.0.0-20240321043226-06bcc1c23f58/discovery/discovery.go (about) 1 package discovery 2 3 import ( 4 "context" 5 6 "github.com/projecteru2/core/types" 7 8 "github.com/google/uuid" 9 ) 10 11 // Service . 12 type Service interface { 13 Subscribe(ctx context.Context) (uuid.UUID, <-chan types.ServiceStatus) 14 Unsubscribe(ID uuid.UUID) 15 }