mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-25 07:11:03 +00:00
cca881ec49
* Wip p2p enhancements * get online state * Pass-by token to show in the dashboard Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Style * Minor fixups * parametrize SearchID * Refactoring * Allow to expose/bind more services Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Add federation * Display federated mode in the WebUI Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Small fixups Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * make federated nodes visible from the WebUI * Fix version display * improve web page * live page update * visual enhancements * enhancements * visual enhancements --------- Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
32 lines
585 B
Go
32 lines
585 B
Go
//go:build !p2p
|
|
// +build !p2p
|
|
|
|
package p2p
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
|
|
"github.com/mudler/edgevpn/pkg/node"
|
|
)
|
|
|
|
func GenerateToken() string {
|
|
return "not implemented"
|
|
}
|
|
|
|
func ServiceDiscoverer(ctx context.Context, node *node.Node, token, servicesID string, fn func()) 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")
|
|
}
|