code: func GetGateway(db sqlx.Queryer, id lorawan.EUI64) (Gateway, error) {
  	var gw Gateway
  	err := sqlx.Get(db, &gw, "select * from gateway where gateway_id = $1", id[:])
  	if err != nil {
  		return gw, handlePSQLError(err, "select error")
  	}
  
  	err = sqlx.Select(db, &gw.Boards, `
  		select
  			fpga_id,
  			fine_timestamp_key
  		from
  			gateway_board
  		where
  			gateway_id = $1
  		order by
  			id
  		`,
  		id,
  	)
  	if err != nil {
  		return gw, handlePSQLError(err, "select error")
  	}
  
  	return gw, nil
  }
docs: // GetGateway returns the gateway for the given Gateway ID.