func HandleGetStream(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, ps httprouter.Params,
) (interface{}, int, error) {
	// GET /streams/{streamID} Get a single stream
	id := ps.ByName("streamID")
	if id == "enabled" {
		return HandleGetEnabledStreams(user, lgc, w, r, ps)
	}
	if sc, err := lgc.Authorize(user, "streams:read", id); err != nil {
		return nil, sc, err
	}
	return lgc.GetStream(id)
}
// HandleGetStream is the handler of Get a Stream API.
HandleGetStream is the handler of Get a Stream API.
// HandleGetStream is the handler of Get a Stream API .
func HandleGetStream(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, ps httprouter.Params,
) (interface{}, int, error) {
	id := ps.ByName("streamID")
	if id == "enabled" {
		return HandleGetEnabledStreams(user, lgc, w, r, ps)
	}
	if sc, err := lgc.Authorize(user, "streams:read", id); err != nil {
		return nil, sc, err
	}
	return lgc.GetStream(id)
}
func HandleGetStream ( user * graylog . User , lgc * logic . Logic , w http . ResponseWriter , r * http . Request , ps httprouter . Params , ) ( interface { } , int , error ) { id := ps . ByName ( " " ) if id == " " { return HandleGetEnabledStreams ( user , lgc , w , r , ps ) } if sc , err := lgc . Authorize ( user , " " , id ) ; err != nil { return nil , sc , err } return lgc . GetStream ( id ) }
HandleGetStream is the handler of Get a Stream API.
HandleGetStream is the handler of Get a Stream API .
// GET /streams/{streamID} Get a single stream