func HandlePauseStream(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, ps httprouter.Params,
) (interface{}, int, error) {
	// POST /streams/{streamID}/pause Pause a stream
	id := ps.ByName("streamID")
	if sc, err := lgc.Authorize(user, "streams:changestate", id); err != nil {
		return nil, sc, err
	}
	sc, err := lgc.PauseStream(id)
	return nil, sc, err
}
// HandlePauseStream is the handler of Pause a Stream API.
HandlePauseStream is the handler of Pause a Stream API.
// HandlePauseStream is the handler of Pause a Stream API .
func HandlePauseStream(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, ps httprouter.Params,
) (interface{}, int, error) {
	id := ps.ByName("streamID")
	if sc, err := lgc.Authorize(user, "streams:changestate", id); err != nil {
		return nil, sc, err
	}
	sc, err := lgc.PauseStream(id)
	return nil, sc, err
}
func HandlePauseStream ( user * graylog . User , lgc * logic . Logic , w http . ResponseWriter , r * http . Request , ps httprouter . Params , ) ( interface { } , int , error ) { id := ps . ByName ( " " ) if sc , err := lgc . Authorize ( user , " " , id ) ; err != nil { return nil , sc , err } sc , err := lgc . PauseStream ( id ) return nil , sc , err }
HandlePauseStream is the handler of Pause a Stream API.
HandlePauseStream is the handler of Pause a Stream API .
// POST /streams/{streamID}/pause Pause a stream