mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-21 13:37:51 +00:00
24a8eebcef
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
16 lines
302 B
Go
16 lines
302 B
Go
package p2p
|
|
|
|
const FederatedID = "federated"
|
|
|
|
type FederatedServer struct {
|
|
listenAddr, service, p2ptoken string
|
|
}
|
|
|
|
func NewFederatedServer(listenAddr, service, p2pToken string) *FederatedServer {
|
|
return &FederatedServer{
|
|
listenAddr: listenAddr,
|
|
service: service,
|
|
p2ptoken: p2pToken,
|
|
}
|
|
}
|