func HandleGetRoles(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, _ httprouter.Params,
) (interface{}, int, error) {
	// GET /roles List all roles
	arr, total, sc, err := lgc.GetRoles()
	if err != nil {
		return arr, sc, err
	}
	return &graylog.RolesBody{Roles: arr, Total: total}, sc, nil
}
// HandleGetRoles is the handler of GET Roles API.
HandleGetRoles is the handler of GET Roles API.
// HandleGetRoles is the handler of GET Roles API .
func HandleGetRoles(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, _ httprouter.Params,
) (interface{}, int, error) {
	arr, total, sc, err := lgc.GetRoles()
	if err != nil {
		return arr, sc, err
	}
	return &graylog.RolesBody{Roles: arr, Total: total}, sc, nil
}
func HandleGetRoles ( user * graylog . User , lgc * logic . Logic , w http . ResponseWriter , r * http . Request , _ httprouter . Params , ) ( interface { } , int , error ) { arr , total , sc , err := lgc . GetRoles ( ) if err != nil { return arr , sc , err } return & graylog . RolesBody { Roles : arr , Total : total } , sc , nil }
HandleGetRoles is the handler of GET Roles API.
HandleGetRoles is the handler of GET Roles API .
// GET /roles List all roles