func (lgc *Logic) GetUser(username string) (*graylog.User, int, error) {
	user, err := lgc.store.GetUser(username)
	if err != nil {
		return user, 500, err
	}
	if user == nil {
		return user, 404, fmt.Errorf(`no user "%s" is found`, username)
	}
	return user, 200, nil
}
// GetUser returns a user.
GetUser returns a user.
// GetUser returns a user .
func (lgc *Logic) GetUser(username string) (*graylog.User, int, error) {
	user, err := lgc.store.GetUser(username)
	if err != nil {
		return user, 500, err
	}
	if user == nil {
		return user, 404, fmt.Errorf(`no user "%s" is found`, username)
	}
	return user, 200, nil
}
func ( lgc * Logic ) GetUser ( username string ) ( * graylog . User , int , error ) { user , err := lgc . store . GetUser ( username ) if err != nil { return user , 500 , err } if user == nil { return user , 404 , fmt . Errorf ( `no user "%s" is found` , username ) } return user , 200 , nil }
GetUser returns a user.
GetUser returns a user .