func HandleGetUser(
	u *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, ps httprouter.Params,
) (interface{}, int, error) {
	// GET /users/{username} Get user details
	name := ps.ByName("username")
	// TODO authorization
	user, sc, err := lgc.GetUser(name)
	if user != nil {
		user.Password = ""
	}
	return user, sc, err
}
// HandleGetUser is the handler of GET User API.
HandleGetUser is the handler of GET User API.
// HandleGetUser is the handler of GET User API .
func HandleGetUser(
	u *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, ps httprouter.Params,
) (interface{}, int, error) {
	name := ps.ByName("username")
	user, sc, err := lgc.GetUser(name)
	if user != nil {
		user.Password = ""
	}
	return user, sc, err
}
func HandleGetUser ( u * graylog . User , lgc * logic . Logic , w http . ResponseWriter , r * http . Request , ps httprouter . Params , ) ( interface { } , int , error ) { name := ps . ByName ( " " ) user , sc , err := lgc . GetUser ( name ) if user != nil { user . Password = " " } return user , sc , err }
HandleGetUser is the handler of GET User API.
HandleGetUser is the handler of GET User API .
// GET /users/{username} Get user details // TODO authorization