func HandleDeleteStream(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, ps httprouter.Params,
) (interface{}, int, error) {
	// DELETE /streams/{streamID} Delete a stream
	id := ps.ByName("streamID")
	// TODO authorization
	sc, err := lgc.DeleteStream(id)
	if err != nil {
		return nil, sc, err
	}
	if err := lgc.Save(); err != nil {
		return nil, 500, err
	}
	return nil, sc, nil
}
// HandleDeleteStream is the handler of Delete a Stream API.
HandleDeleteStream is the handler of Delete a Stream API.
// HandleDeleteStream is the handler of Delete a Stream API .
func HandleDeleteStream(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, ps httprouter.Params,
) (interface{}, int, error) {
	id := ps.ByName("streamID")
	sc, err := lgc.DeleteStream(id)
	if err != nil {
		return nil, sc, err
	}
	if err := lgc.Save(); err != nil {
		return nil, 500, err
	}
	return nil, sc, nil
}
func HandleDeleteStream ( user * graylog . User , lgc * logic . Logic , w http . ResponseWriter , r * http . Request , ps httprouter . Params , ) ( interface { } , int , error ) { id := ps . ByName ( " " ) sc , err := lgc . DeleteStream ( id ) if err != nil { return nil , sc , err } if err := lgc . Save ( ) ; err != nil { return nil , 500 , err } return nil , sc , nil }
HandleDeleteStream is the handler of Delete a Stream API.
HandleDeleteStream is the handler of Delete a Stream API .
// DELETE /streams/{streamID} Delete a stream // TODO authorization