mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-21 21:47:51 +00:00
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,
|
||
|
}
|
||
|
}
|