herald.go/server/jsonrpc_federation.go
Jeffrey Picard d90a968afc Cleanup shutdown and peers subscribe
this has errors currently, need to figure out data race
2022-12-07 04:01:31 +00:00

24 lines
478 B
Go

package server
import (
log "github.com/sirupsen/logrus"
)
type PeersService struct{}
type PeersSubscribeReq struct {
Ip string `json:"ip"`
Host string `json:"host"`
Details []string `json:"details"`
}
type PeersSubscribeResp struct{}
// Features is the json rpc endpoint for 'server.peers.subcribe'.
func (t *ServerService) PeersSubscribe(req *PeersSubscribeReq, res **PeersSubscribeResp) error {
log.Println("PeersSubscribe")
*res = nil
return nil
}