mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-18 20:27:57 +00:00
023ce59d44
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
36 lines
765 B
Go
36 lines
765 B
Go
//go:build !p2p
|
|
// +build !p2p
|
|
|
|
package p2p
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
|
|
"github.com/mudler/edgevpn/pkg/node"
|
|
)
|
|
|
|
func GenerateToken(DHTInterval, OTPInterval int) 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), allocate bool) error {
|
|
return fmt.Errorf("not implemented")
|
|
}
|
|
|
|
func ExposeService(ctx context.Context, host, port, token, servicesID string) (*node.Node, error) {
|
|
return nil, fmt.Errorf("not implemented")
|
|
}
|
|
|
|
func IsP2PEnabled() bool {
|
|
return false
|
|
}
|
|
|
|
func NewNode(token string) (*node.Node, error) {
|
|
return nil, fmt.Errorf("not implemented")
|
|
}
|