func HandleAddUserToRole(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, ps httprouter.Params,
) (interface{}, int, error) {
	// PUT /roles/{rolename}/members/{username} Add a user to a role
	sc, err := lgc.AddUserToRole(ps.ByName("username"), ps.ByName("rolename"))
	return nil, sc, err
}
// HandleAddUserToRole is the handler of Add a user to a role API.
HandleAddUserToRole is the handler of Add a user to a role API.
// HandleAddUserToRole is the handler of Add a user to a role API .
func HandleAddUserToRole(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, ps httprouter.Params,
) (interface{}, int, error) {
	sc, err := lgc.AddUserToRole(ps.ByName("username"), ps.ByName("rolename"))
	return nil, sc, err
}
func HandleAddUserToRole ( user * graylog . User , lgc * logic . Logic , w http . ResponseWriter , r * http . Request , ps httprouter . Params , ) ( interface { } , int , error ) { sc , err := lgc . AddUserToRole ( ps . ByName ( " " ) , ps . ByName ( " " ) ) return nil , sc , err }
HandleAddUserToRole is the handler of Add a user to a role API.
HandleAddUserToRole is the handler of Add a user to a role API .
// PUT /roles/{rolename}/members/{username} Add a user to a role