func HandleGetEnabledStreams(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, _ httprouter.Params,
) (interface{}, int, error) {
	// GET /streams/enabled Get a list of all enabled streams
	arr, total, sc, err := lgc.GetEnabledStreams()
	if err != nil {
		return nil, sc, err
	}
	return &graylog.StreamsBody{Streams: arr, Total: total}, sc, nil
}
// HandleGetEnabledStreams is the handler of Get all enabled streams API.
HandleGetEnabledStreams is the handler of Get all enabled streams API.
// HandleGetEnabledStreams is the handler of Get all enabled streams API .
func HandleGetEnabledStreams(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, _ httprouter.Params,
) (interface{}, int, error) {
	arr, total, sc, err := lgc.GetEnabledStreams()
	if err != nil {
		return nil, sc, err
	}
	return &graylog.StreamsBody{Streams: arr, Total: total}, sc, nil
}
func HandleGetEnabledStreams ( user * graylog . User , lgc * logic . Logic , w http . ResponseWriter , r * http . Request , _ httprouter . Params , ) ( interface { } , int , error ) { arr , total , sc , err := lgc . GetEnabledStreams ( ) if err != nil { return nil , sc , err } return & graylog . StreamsBody { Streams : arr , Total : total } , sc , nil }
HandleGetEnabledStreams is the handler of Get all enabled streams API.
HandleGetEnabledStreams is the handler of Get all enabled streams API .
// GET /streams/enabled Get a list of all enabled streams