5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-01-11 13:05:44 +00:00
yggdrasil-go/src/admin/removepeer.go

13 lines
299 B
Go
Raw Normal View History

package admin
type RemovePeerRequest struct {
Uri string `json:"uri"`
Sintf string `json:"interface,omitempty"`
}
type RemovePeerResponse struct{}
func (a *AdminSocket) removePeerHandler(req *RemovePeerRequest, res *RemovePeerResponse) error {
return a.core.RemovePeer(req.Uri, req.Sintf)
}