Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (24 sloc) 720 Bytes
package ravendb
import (
"net/http"
)
var (
_ RavenCommand = &DeleteSubscriptionCommand{}
)
// DeleteSubscriptionCommand describes "delete subscription" command
type DeleteSubscriptionCommand struct {
RavenCommandBase
name string
}
func newDeleteSubscriptionCommand(name string) *DeleteSubscriptionCommand {
cmd := &DeleteSubscriptionCommand{
RavenCommandBase: NewRavenCommandBase(),
name: name,
}
cmd.ResponseType = RavenCommandResponseTypeEmpty
return cmd
}
func (c *DeleteSubscriptionCommand) createRequest(node *ServerNode) (*http.Request, error) {
url := node.URL + "/databases/" + node.Database + "/subscriptions?taskName=" + urlUtilsEscapeDataString(c.name)
return newHttpDelete(url, nil)
}
You can’t perform that action at this time.