func HandleGetInputs(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, _ httprouter.Params,
) (interface{}, int, error) {
	// GET /system/inputs Get all inputs
	arr, total, sc, err := lgc.GetInputs()
	if err != nil {
		return arr, sc, err
	}
	inputs := &graylog.InputsBody{Inputs: arr, Total: total}
	return inputs, sc, nil
}
// HandleGetInputs is the handler of Get Inputs API.
HandleGetInputs is the handler of Get Inputs API.
// HandleGetInputs is the handler of Get Inputs API .
func HandleGetInputs(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, _ httprouter.Params,
) (interface{}, int, error) {
	arr, total, sc, err := lgc.GetInputs()
	if err != nil {
		return arr, sc, err
	}
	inputs := &graylog.InputsBody{Inputs: arr, Total: total}
	return inputs, sc, nil
}
func HandleGetInputs ( user * graylog . User , lgc * logic . Logic , w http . ResponseWriter , r * http . Request , _ httprouter . Params , ) ( interface { } , int , error ) { arr , total , sc , err := lgc . GetInputs ( ) if err != nil { return arr , sc , err } inputs := & graylog . InputsBody { Inputs : arr , Total : total } return inputs , sc , nil }
HandleGetInputs is the handler of Get Inputs API.
HandleGetInputs is the handler of Get Inputs API .
// GET /system/inputs Get all inputs