File size: 703 Bytes
7def60a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//go:build !p2p
// +build !p2p

package p2p

import (
	"context"
	"fmt"

	"github.com/mudler/edgevpn/pkg/node"
)

func GenerateToken() string {
	return "not implemented"
}

func (f *FederatedServer) Start(ctx context.Context) error {
	return fmt.Errorf("not implemented")
}

func ServiceDiscoverer(ctx context.Context, node *node.Node, token, servicesID string, fn func(string, NodeData)) error {
	return fmt.Errorf("not implemented")
}

func ExposeService(ctx context.Context, host, port, token, servicesID string) error {
	return fmt.Errorf("not implemented")
}

func IsP2PEnabled() bool {
	return false
}

func NewNode(token string) (*node.Node, error) {
	return nil, fmt.Errorf("not implemented")
}